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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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@227
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@226
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@225
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@224
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@223
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@222
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@221
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@220
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@219
1cc9d426-c294-39be-ba72-
c0199ca0f247
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@218
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Mon, 4 Jun 2012 17:54:19 +0000 (17:54 +0000)]
fix a potential memory leak by properly transferring ownership of inner callback when constructing an outer closure
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@217
1cc9d426-c294-39be-ba72-
c0199ca0f247
danielsmyers [Thu, 17 May 2012 02:44:51 +0000 (02:44 +0000)]
Makes AndroidClientProxy.{start,stop} no-ops if the class is already in the requested state.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@216
1cc9d426-c294-39be-ba72-
c0199ca0f247
danielsmyers [Tue, 15 May 2012 23:37:00 +0000 (23:37 +0000)]
Replaces Receiver with a custom BoundWork type.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@215
1cc9d426-c294-39be-ba72-
c0199ca0f247
danielsmyers [Tue, 15 May 2012 20:23:43 +0000 (20:23 +0000)]
Modifies the ServiceBinder class to provide an asynchronous interface for making calls against bound services.
Fixes InvalidationTestService.create to have "create-or-resume" semantics as the production code does.
Improves log messages in InvalidationClientImpl and RegistrationManager.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@214
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Mon, 14 May 2012 18:21:05 +0000 (18:21 +0000)]
tone down logging when the Ticl receives a message with a mismatching token
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@213
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Fri, 27 Apr 2012 18:29:39 +0000 (18:29 +0000)]
Unwrap protos when doing state comparisons
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@212
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Fri, 27 Apr 2012 16:10:39 +0000 (16:10 +0000)]
Fix build issues w/ last commit
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@211
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Fri, 27 Apr 2012 15:41:00 +0000 (15:41 +0000)]
- Improved platform description string
- Save last activity info in persisted state and use it to control the timing
of heartbeats across stop/start.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@210
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Fri, 27 Apr 2012 03:19:09 +0000 (03:19 +0000)]
Fix registration loops
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@209
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Thu, 26 Apr 2012 23:24:50 +0000 (23:24 +0000)]
Minor error code fix on invalid client
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@208
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Thu, 26 Apr 2012 20:27:32 +0000 (20:27 +0000)]
- Client errors are now logged and then dropped, to avoid app crashing on unhandled unchecked exceptions
- More locking and scheduled execution for thread safety
- Exponential backoff on auth token retrieval failures
- Reobtain C2DM registration ID if the contain application is upgraded (as evidenced by a changes in the application package version number).
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@207
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Wed, 18 Apr 2012 17:08:31 +0000 (17:08 +0000)]
Centralized logger handling to always uses an AndroidLogger and reduced
verbosity.
Change to identifying clients by their application package name instead of sender id in the network endpoint id.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@206
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Fri, 23 Mar 2012 00:47:27 +0000 (00:47 +0000)]
Make code JDK 1.5 / Froyo compatible
Improved, less verbose logging
Provided compiled in default for HTTP channel interface instead of requiring manifest-based configuration.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@205
1cc9d426-c294-39be-ba72-
c0199ca0f247
kylemarvin@gmail.com [Thu, 15 Mar 2012 14:12:33 +0000 (14:12 +0000)]
Misc fixes for Lite protobuf support plus fix C2DM service restart NPE.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@204
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Tue, 13 Mar 2012 17:15:44 +0000 (17:15 +0000)]
fix bad header path in digest-function.h
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@203
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Sat, 10 Mar 2012 00:20:25 +0000 (00:20 +0000)]
fix include for invalidation client factory
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@202
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Fri, 9 Mar 2012 21:16:32 +0000 (21:16 +0000)]
update README files
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@201
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Fri, 9 Mar 2012 20:46:44 +0000 (20:46 +0000)]
remove unnecessary header inclusion in invalidation-listener.h
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@200
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Fri, 9 Mar 2012 20:13:50 +0000 (20:13 +0000)]
fix a bug where multiplying a TimeDelta by a double would truncate it to zero
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@199
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Fri, 9 Mar 2012 17:16:23 +0000 (17:16 +0000)]
add comments and local variables to improve readability of protocol handler configuration parameters
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk@198
1cc9d426-c294-39be-ba72-
c0199ca0f247