external/google-cache-invalidation-api/src.git
2 weeks agoAdding new client types for Chrome Sync GCM. master
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/src@331 1cc9d426-c294-39be-ba72-c0199ca0f247

7 weeks 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/src@330 1cc9d426-c294-39be-ba72-c0199ca0f247

7 weeks 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/src@329 1cc9d426-c294-39be-ba72-c0199ca0f247

7 weeks 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/src@328 1cc9d426-c294-39be-ba72-c0199ca0f247

8 weeks 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/src@327 1cc9d426-c294-39be-ba72-c0199ca0f247

2 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/src@326 1cc9d426-c294-39be-ba72-c0199ca0f247

2 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/src@325 1cc9d426-c294-39be-ba72-c0199ca0f247

2 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/src@324 1cc9d426-c294-39be-ba72-c0199ca0f247

2 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/src@323 1cc9d426-c294-39be-ba72-c0199ca0f247

2 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/src@322 1cc9d426-c294-39be-ba72-c0199ca0f247

2 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/src@319 1cc9d426-c294-39be-ba72-c0199ca0f247

5 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/src@314 1cc9d426-c294-39be-ba72-c0199ca0f247

7 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/src@313 1cc9d426-c294-39be-ba72-c0199ca0f247

8 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/src@312 1cc9d426-c294-39be-ba72-c0199ca0f247

8 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/src@311 1cc9d426-c294-39be-ba72-c0199ca0f247

8 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/src@310 1cc9d426-c294-39be-ba72-c0199ca0f247

10 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/src@309 1cc9d426-c294-39be-ba72-c0199ca0f247

10 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/src@308 1cc9d426-c294-39be-ba72-c0199ca0f247

10 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/src@307 1cc9d426-c294-39be-ba72-c0199ca0f247

10 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/src@306 1cc9d426-c294-39be-ba72-c0199ca0f247

11 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/src@305 1cc9d426-c294-39be-ba72-c0199ca0f247

11 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/src@304 1cc9d426-c294-39be-ba72-c0199ca0f247

11 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/src@303 1cc9d426-c294-39be-ba72-c0199ca0f247

11 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/src@302 1cc9d426-c294-39be-ba72-c0199ca0f247

11 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/src@301 1cc9d426-c294-39be-ba72-c0199ca0f247

11 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/src@300 1cc9d426-c294-39be-ba72-c0199ca0f247

11 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/src@299 1cc9d426-c294-39be-ba72-c0199ca0f247

12 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/src@298 1cc9d426-c294-39be-ba72-c0199ca0f247

12 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/src@297 1cc9d426-c294-39be-ba72-c0199ca0f247

12 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/src@296 1cc9d426-c294-39be-ba72-c0199ca0f247

12 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/src@295 1cc9d426-c294-39be-ba72-c0199ca0f247

12 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/src@294 1cc9d426-c294-39be-ba72-c0199ca0f247

12 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/src@293 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@292 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@288 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@286 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@285 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@284 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@283 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@282 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@281 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@280 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@279 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@278 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@277 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@276 1cc9d426-c294-39be-ba72-c0199ca0f247

13 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/src@275 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@274 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@273 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@271 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@270 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@268 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@265 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@264 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@263 1cc9d426-c294-39be-ba72-c0199ca0f247

14 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/src@262 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@261 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@260 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@259 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@258 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@257 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@256 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@255 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@254 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@253 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@252 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@251 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@250 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@249 1cc9d426-c294-39be-ba72-c0199ca0f247

15 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/src@248 1cc9d426-c294-39be-ba72-c0199ca0f247

16 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/src@247 1cc9d426-c294-39be-ba72-c0199ca0f247

16 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/src@246 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months 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/src@245 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months 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/src@244 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months 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/src@243 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months 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/src@242 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@241 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@240 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@239 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@238 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@237 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@236 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@235 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@234 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@233 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@232 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@231 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@230 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@229 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months 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/src@228 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoDelete TestTiclService.
danielsmyers [Fri, 12 Oct 2012 21:18:34 +0000 (21:18 +0000)]
Delete TestTiclService.

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

18 months agoAdd missing Marshallable type.
danielsmyers [Fri, 12 Oct 2012 20:46:10 +0000 (20:46 +0000)]
Add missing Marshallable type.

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

18 months agoAdd missing java_client.proto.
danielsmyers [Fri, 12 Oct 2012 19:12:53 +0000 (19:12 +0000)]
Add missing java_client.proto.

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

18 months agoAdd missing ProtoValidator.java.
danielsmyers [Fri, 12 Oct 2012 18:46:41 +0000 (18:46 +0000)]
Add missing ProtoValidator.java.

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

18 months agoAdds an example application for the Android v2 Ticl.
danielsmyers [Fri, 12 Oct 2012 01:05:49 +0000 (01:05 +0000)]
Adds an example application for the Android v2 Ticl.
Fixes a small bug in the v2 TiclStateManager around protocol buffer comparisons.

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

18 months agoAdds a multiplexing GCM listener class, for sharing a GCM connection between multiple...
danielsmyers [Fri, 12 Oct 2012 00:42:12 +0000 (00:42 +0000)]
Adds a multiplexing GCM listener class, for sharing a GCM connection between multiple components in a single application.

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

18 months agoAdds v2 of the Android client library.
danielsmyers [Fri, 12 Oct 2012 00:30:31 +0000 (00:30 +0000)]
Adds v2 of the Android client library.

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

20 months agoAdds the CHROME_COMPONENTS enum to the types proto.
danielsmyers [Wed, 1 Aug 2012 01:09:30 +0000 (01:09 +0000)]
Adds the CHROME_COMPONENTS enum to the types proto.

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

20 months agomove protos out of v2/; use relative paths for proto imports
ghcooper@gmail.com [Sat, 21 Jul 2012 00:44:14 +0000 (00:44 +0000)]
move protos out of v2/; use relative paths for proto imports

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

22 months agomove the implementation of ownership-transferring callback wrapping into deps/callback.h
ghcooper@gmail.com [Tue, 5 Jun 2012 18:21:50 +0000 (18:21 +0000)]
move the implementation of ownership-transferring callback wrapping into deps/callback.h

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