external/google-cache-invalidation-api.git
6 weeks agoFixing package name in AndroidListenerManifest.xml and ordering factory methods by... master
colinmeek@gmail.com [Mon, 15 Sep 2014 22:55:20 +0000 (22:55 +0000)]
Fixing package name in AndroidListenerManifest.xml and ordering factory methods by corresponding proto field in AndroidService.java

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@341 1cc9d426-c294-39be-ba72-c0199ca0f247

6 weeks agoRemoving guava dependency for the invalidation client (part of an effort to reduce...
colinmeek@gmail.com [Fri, 12 Sep 2014 20:41:18 +0000 (20:41 +0000)]
Removing guava dependency for the invalidation client (part of an effort to reduce method count in Android applications)

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@340 1cc9d426-c294-39be-ba72-c0199ca0f247

2 months agoAdding forwarding implementation of WakeLockManager in its original location (tempora...
colinmeek@gmail.com [Thu, 28 Aug 2014 18:33:35 +0000 (18:33 +0000)]
Adding forwarding implementation of WakeLockManager in its original location (temporary workaround for Chromium)

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@339 1cc9d426-c294-39be-ba72-c0199ca0f247

2 months ago* Updating example code to use nano protos instead of lite protos
colinmeek@gmail.com [Wed, 27 Aug 2014 22:54:15 +0000 (22:54 +0000)]
* Updating example code to use nano protos instead of lite protos
* Addressing Android lint warnings

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@338 1cc9d426-c294-39be-ba72-c0199ca0f247

2 months agoRemoving unused ticl.ProtoWrapper class and moving example code
colinmeek@gmail.com [Wed, 27 Aug 2014 21:38:05 +0000 (21:38 +0000)]
Removing unused ticl.ProtoWrapper class and moving example code

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@337 1cc9d426-c294-39be-ba72-c0199ca0f247

2 months agoAndroid cache invalidation client release August 2014
colinmeek@gmail.com [Mon, 25 Aug 2014 18:37:16 +0000 (18:37 +0000)]
Android cache invalidation client release August 2014

* Switching from lite to nano protos
* AckCache suppressing duplicate invalidations
* Removing deprecated code

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@336 1cc9d426-c294-39be-ba72-c0199ca0f247

3 months agorevert r333: Chromium is not yet ready to pull current versions of gtest/gmock, since...
ghcooper@gmail.com [Thu, 17 Jul 2014 17:53:10 +0000 (17:53 +0000)]
revert r333: Chromium is not yet ready to pull current versions of gtest/gmock, since they require C++11

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@335 1cc9d426-c294-39be-ba72-c0199ca0f247

3 months agoAllow Chromium to build with more MSVC warnings enabled.
ghcooper@gmail.com [Thu, 17 Jul 2014 00:03:25 +0000 (00:03 +0000)]
Allow Chromium to build with more MSVC warnings enabled.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@334 1cc9d426-c294-39be-ba72-c0199ca0f247

3 months agoCleanup: Use ::testing::{tuple,get,make_tuple} when dealing with tuples in the contex...
ghcooper@gmail.com [Thu, 17 Jul 2014 00:00:44 +0000 (00:00 +0000)]
Cleanup: Use ::testing::{tuple,get,make_tuple} when dealing with tuples in the context of GTest and GMock.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@333 1cc9d426-c294-39be-ba72-c0199ca0f247

3 months agoCleaning up remaining misuses of "squelch" in our code base.
ghcooper@gmail.com [Wed, 16 Jul 2014 23:47:17 +0000 (23:47 +0000)]
Cleaning up remaining misuses of "squelch" in our code base.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@332 1cc9d426-c294-39be-ba72-c0199ca0f247

6 months agoAdding new client types for Chrome Sync GCM.
colinmeek@gmail.com [Fri, 4 Apr 2014 16:45:47 +0000 (16:45 +0000)]
Adding new client types for Chrome Sync GCM.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@331 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoadd lite runtime option to android_channel.proto
ghcooper@gmail.com [Fri, 28 Feb 2014 20:35:08 +0000 (20:35 +0000)]
add lite runtime option to android_channel.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@330 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agochange protocol buffer compiler options in channel_common.proto
ghcooper@gmail.com [Wed, 26 Feb 2014 19:05:14 +0000 (19:05 +0000)]
change protocol buffer compiler options in channel_common.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@329 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoAdding copies of protos for use in C++ cache invalidation.
colinmeek@gmail.com [Tue, 25 Feb 2014 23:49:22 +0000 (23:49 +0000)]
Adding copies of protos for use in C++ cache invalidation.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@328 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoFebruary 2014 invalidation client release
colinmeek@gmail.com [Tue, 18 Feb 2014 22:53:34 +0000 (22:53 +0000)]
February 2014 invalidation client release

* Name changes and refactoring in protos
* Optionally forwarding invalidation intents to stopped clients ("background" invalidations)
* Code cleanup (fixing log message, and removing unused constant)

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@327 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoupdate build datestamp
ghcooper@gmail.com [Wed, 5 Feb 2014 22:14:23 +0000 (22:14 +0000)]
update build datestamp

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@326 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoRevert r322 since Chrome does not yet support unique_ptr
ghcooper@gmail.com [Wed, 5 Feb 2014 21:32:16 +0000 (21:32 +0000)]
Revert r322 since Chrome does not yet support unique_ptr

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@325 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoAdd channel_common.proto
ghcooper@gmail.com [Wed, 5 Feb 2014 01:41:03 +0000 (01:41 +0000)]
Add channel_common.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@324 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoremove unused mock methods
ghcooper@gmail.com [Wed, 5 Feb 2014 01:33:41 +0000 (01:33 +0000)]
remove unused mock methods

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@323 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoCleanup: Convert from scoped_ptr to std::unique_ptr.
ghcooper@gmail.com [Wed, 5 Feb 2014 01:22:39 +0000 (01:22 +0000)]
Cleanup: Convert from scoped_ptr to std::unique_ptr.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@322 1cc9d426-c294-39be-ba72-c0199ca0f247

9 months agoAddressing NPE when accessing resources to log message about null intents
colinmeek@gmail.com [Fri, 24 Jan 2014 21:44:48 +0000 (21:44 +0000)]
Addressing NPE when accessing resources to log message about null intents

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@319 1cc9d426-c294-39be-ba72-c0199ca0f247

11 months agoNovember invalidation client update
colinmeek@gmail.com [Tue, 12 Nov 2013 19:46:32 +0000 (19:46 +0000)]
November invalidation client update

- Using setIntentRedelivery(true) and checking for null intents in all IntentService implementations.
- Adding support for clients that need to be informed of suppression (exposing suppression-enabled flag, which formerly defaulted to true)
- Disabling connection reuse in message sender service to minimize chances of EOFException
- Misc. comment and code cleanup

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@314 1cc9d426-c294-39be-ba72-c0199ca0f247

13 months agoSeptember 2013 invalidation client release
colinmeek@gmail.com [Tue, 3 Sep 2013 16:59:36 +0000 (16:59 +0000)]
September 2013 invalidation client release

- Add support for OAuth2 to Android network channel

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@313 1cc9d426-c294-39be-ba72-c0199ca0f247

14 months agoupdate build timestamp for 8/2013 release
ghcooper@gmail.com [Mon, 12 Aug 2013 20:32:09 +0000 (20:32 +0000)]
update build timestamp for 8/2013 release

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@312 1cc9d426-c294-39be-ba72-c0199ca0f247

14 months agosplit ::using declarations for RepeatedField into a separate header
ghcooper@gmail.com [Mon, 12 Aug 2013 20:15:37 +0000 (20:15 +0000)]
split ::using declarations for RepeatedField into a separate header

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@311 1cc9d426-c294-39be-ba72-c0199ca0f247

14 months ago- Caching application metadata to avoid repeatedly reading manifest.xml
colinmeek@gmail.com [Thu, 8 Aug 2013 00:30:58 +0000 (00:30 +0000)]
- Caching application metadata to avoid repeatedly reading manifest.xml
- Removing unused test help class
- Updating build version

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@310 1cc9d426-c294-39be-ba72-c0199ca0f247

16 months agoRemoving reflection code from Statistics.java to avoid issues from Proguard mangling
colinmeek@gmail.com [Wed, 12 Jun 2013 01:22:58 +0000 (01:22 +0000)]
Removing reflection code from Statistics.java to avoid issues from Proguard mangling

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@309 1cc9d426-c294-39be-ba72-c0199ca0f247

16 months agoRolling back statistics change since valueOf calls are failing
colinmeek@gmail.com [Mon, 10 Jun 2013 21:33:36 +0000 (21:33 +0000)]
Rolling back statistics change since valueOf calls are failing

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@308 1cc9d426-c294-39be-ba72-c0199ca0f247

16 months agoupdate version datestamp for June 2013 release
ghcooper@gmail.com [Wed, 5 Jun 2013 17:11:56 +0000 (17:11 +0000)]
update version datestamp for June 2013 release

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@307 1cc9d426-c294-39be-ba72-c0199ca0f247

16 months agoInvalidation client June 2013 changes
colinmeek@gmail.com [Tue, 4 Jun 2013 19:58:23 +0000 (19:58 +0000)]
Invalidation client June 2013 changes

- More reliably closing streams in AndroidStorage
- Removing reflection code from statistics (to avoid issues with minified names)
- Wake lock isHeld() release() race condition accounted for

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@306 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoroll forward now that Chrome change has been committed
ghcooper@gmail.com [Tue, 7 May 2013 18:17:49 +0000 (18:17 +0000)]
roll forward now that Chrome change has been committed

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@305 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agorollback of recent changes so Android is not blocked on a Chrome commit
ghcooper@gmail.com [Tue, 7 May 2013 04:58:42 +0000 (04:58 +0000)]
rollback of recent changes so Android is not blocked on a Chrome commit

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@304 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoAndroid invalidation client changes
colinmeek@gmail.com [Fri, 3 May 2013 20:57:17 +0000 (20:57 +0000)]
Android invalidation client changes

* Removing deprecated proto field
* Handling null intents and requesting redelivery

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@303 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agocast RandUint64 to int64 to avoid ambiguous overload
ghcooper@gmail.com [Fri, 3 May 2013 00:36:31 +0000 (00:36 +0000)]
cast RandUint64 to int64 to avoid ambiguous overload

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@302 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoadd a RandUint64, use that instead of multiplying a double by int64_max
ghcooper@gmail.com [Thu, 2 May 2013 23:18:50 +0000 (23:18 +0000)]
add a RandUint64, use that instead of multiplying a double by int64_max

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@301 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoUpdate build datestamp
ghcooper@gmail.com [Wed, 1 May 2013 18:35:43 +0000 (18:35 +0000)]
Update build datestamp

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@300 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoChange the nonce to be a randomly generated string rather than the time in milliseconds.
ghcooper@gmail.com [Wed, 1 May 2013 18:28:57 +0000 (18:28 +0000)]
Change the nonce to be a randomly generated string rather than the time in milliseconds.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@299 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoAddressing Java warnings
colinmeek@gmail.com [Mon, 15 Apr 2013 17:47:45 +0000 (17:47 +0000)]
Addressing Java warnings

* Moving to API level 14 overload of AccountManager#getAuthToken
* Replacing onStart with onStartCommand
* Cleaning up versions in example manifest
* Generating random nonce rather than using clock when creating a new invalidation client

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@298 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoPush latest changes to opensource.
danielsmyers [Wed, 3 Apr 2013 23:24:39 +0000 (23:24 +0000)]
Push latest changes to opensource.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@297 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoadd build_constants.h and use it for the client minor version
ghcooper@gmail.com [Wed, 3 Apr 2013 23:02:43 +0000 (23:02 +0000)]
add build_constants.h and use it for the client minor version

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@296 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoRemoving unused includes
ghcooper@gmail.com [Mon, 1 Apr 2013 22:19:50 +0000 (22:19 +0000)]
Removing unused includes

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@295 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoReplace calls to scoped_ptr(NULL) with calls to scoped_ptr().
ghcooper@gmail.com [Mon, 1 Apr 2013 22:14:39 +0000 (22:14 +0000)]
Replace calls to scoped_ptr(NULL) with calls to scoped_ptr().

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@294 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoRemove start-related preconditions check from InvalidationClientCore. Issue a
ghcooper@gmail.com [Mon, 1 Apr 2013 22:01:12 +0000 (22:01 +0000)]
Remove start-related preconditions check from InvalidationClientCore. Issue a
transient registration failure if registrations are requested before the client
is ready.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@293 1cc9d426-c294-39be-ba72-c0199ca0f247

19 months agoAdding client type enum value for Chrome sync iOS client.
colinmeek@gmail.com [Thu, 21 Mar 2013 00:01:26 +0000 (00:01 +0000)]
Adding client type enum value for Chrome sync iOS client.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@292 1cc9d426-c294-39be-ba72-c0199ca0f247

19 months agoAdd missing file.
danielsmyers [Fri, 15 Mar 2013 18:40:46 +0000 (18:40 +0000)]
Add missing file.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@288 1cc9d426-c294-39be-ba72-c0199ca0f247

19 months agoPush latest changes to opensource.
danielsmyers [Thu, 14 Mar 2013 19:39:28 +0000 (19:39 +0000)]
Push latest changes to opensource.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@286 1cc9d426-c294-39be-ba72-c0199ca0f247

19 months agoPush latest changes to opensource.
danielsmyers [Thu, 14 Mar 2013 19:39:08 +0000 (19:39 +0000)]
Push latest changes to opensource.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@285 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoSpecify the map comparator (ProtoCompareLess) when declaring an iterator
ghcooper@gmail.com [Wed, 27 Feb 2013 19:19:49 +0000 (19:19 +0000)]
Specify the map comparator (ProtoCompareLess) when declaring an iterator

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@284 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoMove new Ticl factory methods into a class to avoid overloading the old names.
ghcooper@gmail.com [Wed, 27 Feb 2013 03:57:40 +0000 (03:57 +0000)]
Move new Ticl factory methods into a class to avoid overloading the old names.

Also capitalize a couple of function names in the test to conform to C++ style.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@283 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoRemove references to deprecated proto field
ghcooper@gmail.com [Tue, 26 Feb 2013 02:03:34 +0000 (02:03 +0000)]
Remove references to deprecated proto field

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@282 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoAdd tests for the InvalidationClientFactory.
ghcooper@gmail.com [Mon, 25 Feb 2013 21:50:20 +0000 (21:50 +0000)]
Add tests for the InvalidationClientFactory.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@281 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoDo not issue registration-success upcalls until the server has actually responded.
ghcooper@gmail.com [Mon, 25 Feb 2013 21:32:29 +0000 (21:32 +0000)]
Do not issue registration-success upcalls until the server has actually responded.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@280 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoImplement a TricklesClientFactory:
ghcooper@gmail.com [Mon, 25 Feb 2013 20:58:49 +0000 (20:58 +0000)]
Implement a TricklesClientFactory:
- ClientConfigP has a new allow_suppression field which is set to false by the InvalidationClientFactory and to true by the new TricklesClientFactory.
- If suppression is allowed (the default), then restarted invalidation messages result in an invalidate upcall in InvalidationClientCore.
- If suppression is not allowed, then restarted invalidation messages result in invalidateUnknownVersion.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@279 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoDeprecate bridge_arrival_time_ms in InvalidationP
ghcooper@gmail.com [Mon, 25 Feb 2013 20:52:11 +0000 (20:52 +0000)]
Deprecate bridge_arrival_time_ms in InvalidationP

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@278 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoIncrease client minor version to 3.
ghcooper@gmail.com [Mon, 25 Feb 2013 20:46:26 +0000 (20:46 +0000)]
Increase client minor version to 3.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@277 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoFixes Ticl session token logic to allow upgrading of session tokens.
ghcooper@gmail.com [Mon, 25 Feb 2013 20:45:05 +0000 (20:45 +0000)]
Fixes Ticl session token logic to allow upgrading of session tokens.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@276 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoAdd client type to client header as an optional field.
ghcooper@gmail.com [Mon, 25 Feb 2013 20:41:17 +0000 (20:41 +0000)]
Add client type to client header as an optional field.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@275 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoPrevent the TiclService from crashing on null intents.
danielsmyers [Fri, 15 Feb 2013 01:47:14 +0000 (01:47 +0000)]
Prevent the TiclService from crashing on null intents.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@274 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoCleaning up comments, manifests and sample for the AndroidListener
colinmeek@gmail.com [Tue, 5 Feb 2013 19:08:29 +0000 (19:08 +0000)]
Cleaning up comments, manifests and sample for the AndroidListener

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@273 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoBring SVN repo up-to-date with head.
danielsmyers [Fri, 1 Feb 2013 19:49:40 +0000 (19:49 +0000)]
Bring SVN repo up-to-date with head.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@271 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoUse custom logging throughout all classes.
danielsmyers [Fri, 1 Feb 2013 19:49:00 +0000 (19:49 +0000)]
Use custom logging throughout all classes.

Modify WakeLockManager and MultiplexingGcmListener to use our own
wrapper around Android logging.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@270 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoAdd additional filtering features to AndroidLogger.
danielsmyers [Thu, 31 Jan 2013 19:06:24 +0000 (19:06 +0000)]
Add additional filtering features to AndroidLogger.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@268 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months ago1. Make MultiplexingGcmListener properly set the sender ids.
danielsmyers [Tue, 29 Jan 2013 18:12:18 +0000 (18:12 +0000)]
1. Make MultiplexingGcmListener properly set the sender ids.
2. Include the client type in message headers.
3. Allow server-driven session token upgrades.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@265 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoUsing GCM rather than C2DM in the Android invalidation client.
colinmeek@gmail.com [Sat, 26 Jan 2013 01:54:53 +0000 (01:54 +0000)]
Using GCM rather than C2DM in the Android invalidation client.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@264 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoSpecifying a timeout when acquiring wake locks. Defensive code in case we lose track...
colinmeek@gmail.com [Sat, 26 Jan 2013 01:05:14 +0000 (01:05 +0000)]
Specifying a timeout when acquiring wake locks. Defensive code in case we lose track. If we're pre SDK 14, we do not specify a timeout due to https://code.google.com/p/android/issues/detail?id=11622.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@263 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoPush HEAD.
danielsmyers [Fri, 25 Jan 2013 21:40:40 +0000 (21:40 +0000)]
Push HEAD.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@262 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoRemove the three argument overload with isTrickleRestart-- ambiguous implicit convers...
ghcooper@gmail.com [Thu, 17 Jan 2013 18:24:03 +0000 (18:24 +0000)]
Remove the three argument overload with isTrickleRestart-- ambiguous implicit conversion of (char *) to bool rather than string& creates unexpected results.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@261 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoadd is_trickle_restart boolean to InvalidationP
ghcooper@gmail.com [Thu, 17 Jan 2013 01:46:54 +0000 (01:46 +0000)]
add is_trickle_restart boolean to InvalidationP

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@260 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoadd RunStateP to client.proto
ghcooper@gmail.com [Thu, 17 Jan 2013 01:34:42 +0000 (01:34 +0000)]
add RunStateP to client.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@259 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoAdd an isTrickleRestart flag to the Invalidation class. The restarted flag is
ghcooper@gmail.com [Thu, 17 Jan 2013 01:11:26 +0000 (01:11 +0000)]
Add an isTrickleRestart flag to the Invalidation class.  The restarted flag is
documented for internal use only. The flag is required on construction and
preserved when converting to and from InvalidationP.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@258 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agodo not stop the Ticl after an AUTH_ERROR error message upcall to the listener
ghcooper@gmail.com [Thu, 17 Jan 2013 01:06:54 +0000 (01:06 +0000)]
do not stop the Ticl after an AUTH_ERROR error message upcall to the listener

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@257 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoeliminate the enum in RunState and use the proto enum from RunStateP instead
ghcooper@gmail.com [Thu, 17 Jan 2013 01:02:18 +0000 (01:02 +0000)]
eliminate the enum in RunState and use the proto enum from RunStateP instead

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@256 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoPorts some Java changes to the C++ Ticl.
ghcooper@gmail.com [Thu, 17 Jan 2013 00:51:27 +0000 (00:51 +0000)]
Ports some Java changes to the C++ Ticl.

Specifically, moves the batching task out of the protocol handler and into
the invalidation client core.

Original change description:

Implements (un)marshalling of in-memory Ticl state to protocol buffers.

This CL defines protocol buffers to represent various parts of the Ticl
in-memory state and adds code to the Java Ticl to (un)marshall to and from
them. Additionally, as part of this change, it completes the transition of
ProtocolHandler to a passive class by moving the recurring task for batching
from ProtocolHandler to InvalidationClientCore.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@255 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agofix const-& inconsistency in MessageCallback
ghcooper@gmail.com [Thu, 17 Jan 2013 00:39:00 +0000 (00:39 +0000)]
fix const-& inconsistency in MessageCallback

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@254 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoPorts Java Ticl refactoring to C++. This CL also fixes a couple minor nits
ghcooper@gmail.com [Thu, 17 Jan 2013 00:30:42 +0000 (00:30 +0000)]
Ports Java Ticl refactoring to C++. This CL also fixes a couple minor nits
discovered in the Ticls while doing the porting.

Original change description:

Refactors the Java Ticl to enable the new Android design:

  1. Makes ProtocolHandler a less-active class. Messages are now received by
     InvalidationClientCore, which makes a call against ProtocolHandler to
     parse the message and receives back a parsed-messaged object in response.

  2. ProtocolHandler batching functionality is moved into a nested subclass to
     be more-easily persisted.

  3. InvalidationClientImpl is split into two classes. InvalidationClientCore
     and InvalidationClientImpl. InvalidationClientCore is the bulk of the old
     InvalidationClientImpl, containing all of the core logic involved in the
     Ticl, but no concurrency control. InvalidationClientImpl contains an
     InvalidationClientCore and adds the concurrency control. Specifically, the
     model is that ICI can make assertions about which thread it is executing on,
     and it can use schedulers to schedule events in the future or to enqueue something
     onto the listener thread, but it never does a schedule(NO_DELAY) on the internal
     thread. It is the responsibility of the caller to ensure that such calls are made
     on the internal thread.

This CL has a large number of lines changed because of the
InvalidationClientImpl / InvalidationClientCore split; it is not actually that
big a change in terms of line count.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@253 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoreplace IntToString with SimpleItoa
ghcooper@gmail.com [Wed, 16 Jan 2013 22:42:03 +0000 (22:42 +0000)]
replace IntToString with SimpleItoa

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@252 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agocode for tracking invalidation delivery time through the system
ghcooper@gmail.com [Tue, 15 Jan 2013 21:50:11 +0000 (21:50 +0000)]
code for tracking invalidation delivery time through the system

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@251 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agohave the Ticl send a heartbeat if the network disconnects and reconnects, unless
ghcooper@gmail.com [Tue, 15 Jan 2013 21:34:36 +0000 (21:34 +0000)]
have the Ticl send a heartbeat if the network disconnects and reconnects, unless
it sent a message recently

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@250 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoadd last_message_send_time_ms to client.proto and channel_supports_offline_delivery...
ghcooper@gmail.com [Tue, 15 Jan 2013 21:29:44 +0000 (21:29 +0000)]
add last_message_send_time_ms to client.proto and channel_supports_offline_delivery to client_protocol.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@249 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agohave only one message-sending rate limit (of 3 messages in 5 seconds)
ghcooper@gmail.com [Tue, 15 Jan 2013 19:39:45 +0000 (19:39 +0000)]
have only one message-sending rate limit (of 3 messages in 5 seconds)

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@248 1cc9d426-c294-39be-ba72-c0199ca0f247

22 months agoremove references to unused headers and types not available in the lite protobuf...
ghcooper@gmail.com [Tue, 11 Dec 2012 00:14:04 +0000 (00:14 +0000)]
remove references to unused headers and types not available in the lite protobuf runtime

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@247 1cc9d426-c294-39be-ba72-c0199ca0f247

22 months agoSimplified AndroidListener abstraction
colinmeek@gmail.com [Fri, 7 Dec 2012 00:45:55 +0000 (00:45 +0000)]
Simplified AndroidListener abstraction

Registration retries are no longer automatic but exponential backoff is used when the application manually retries. The invalidation client no longer sends optimistic registration success messages so we can use those messages to reset backoff delays.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@246 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoAdd missing TrickleState.
danielsmyers [Tue, 30 Oct 2012 23:35:32 +0000 (23:35 +0000)]
Add missing TrickleState.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@245 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoTrack changes from HEAD. In particular, ensure that all code builds aginst the
danielsmyers [Mon, 29 Oct 2012 18:27:48 +0000 (18:27 +0000)]
Track changes from HEAD. In particular, ensure that all code builds aginst the
open-sourced protocol buffers library.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@244 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agochange license on generate_protos.sh
ghcooper@gmail.com [Fri, 26 Oct 2012 18:49:32 +0000 (18:49 +0000)]
change license on generate_protos.sh

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@243 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agorevert r239, since it causes problems for the android build
ghcooper@gmail.com [Tue, 23 Oct 2012 19:36:12 +0000 (19:36 +0000)]
revert r239, since it causes problems for the android build

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@242 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoadd a couple of object source constants
ghcooper@gmail.com [Fri, 19 Oct 2012 00:56:50 +0000 (00:56 +0000)]
add a couple of object source constants

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@241 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoModifies the GCM channel to buffer the last client message when no registration id...
danielsmyers [Tue, 16 Oct 2012 23:40:06 +0000 (23:40 +0000)]
Modifies the GCM channel to buffer the last client message when no registration id is available.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@240 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoGateway related protos
ghcooper@gmail.com [Tue, 16 Oct 2012 00:47:20 +0000 (00:47 +0000)]
Gateway related protos

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@239 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoRenames protocol buffers and protocol validator classes to more descriptive names.
danielsmyers [Mon, 15 Oct 2012 20:44:30 +0000 (20:44 +0000)]
Renames protocol buffers and protocol validator classes to more descriptive names.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@238 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoUpdate README for example app.
danielsmyers [Mon, 15 Oct 2012 17:31:48 +0000 (17:31 +0000)]
Update README for example app.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@237 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoFix copyright headers.
danielsmyers [Sat, 13 Oct 2012 01:44:57 +0000 (01:44 +0000)]
Fix copyright headers.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@236 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoAdd a README for the example application.
danielsmyers [Fri, 12 Oct 2012 23:27:52 +0000 (23:27 +0000)]
Add a README for the example application.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@235 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoAdd additional supporting files for building the example application.
danielsmyers [Fri, 12 Oct 2012 23:20:37 +0000 (23:20 +0000)]
Add additional supporting files for building the example application.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@234 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoAdd libraries required by the example application.
danielsmyers [Fri, 12 Oct 2012 23:10:52 +0000 (23:10 +0000)]
Add libraries required by the example application.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@233 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoIntroduce src/example-app-build to allow building the example application.
danielsmyers [Fri, 12 Oct 2012 23:09:30 +0000 (23:09 +0000)]
Introduce src/example-app-build to allow building the example application.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@232 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoChanges to proto files and addition of a Receiver type as needed to make the example...
danielsmyers [Fri, 12 Oct 2012 22:37:05 +0000 (22:37 +0000)]
Changes to proto files and addition of a Receiver type as needed to make the example application build.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@231 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoAdd DEMO object/client sources to Java tree.
danielsmyers [Fri, 12 Oct 2012 21:30:52 +0000 (21:30 +0000)]
Add DEMO object/client sources to Java tree.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@230 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoAdd DEMO client/object types.
danielsmyers [Fri, 12 Oct 2012 21:29:33 +0000 (21:29 +0000)]
Add DEMO client/object types.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@229 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoDelete TestResourcesFactory.
danielsmyers [Fri, 12 Oct 2012 21:18:47 +0000 (21:18 +0000)]
Delete TestResourcesFactory.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@228 1cc9d426-c294-39be-ba72-c0199ca0f247