diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-03 05:54:40 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-03 05:54:40 +0000 |
commit | 8cdb68911b8fe9e6c5662d5bdf8a33c77133092b (patch) | |
tree | 1f4b703c5a37a0b84430e074834e530223aedd21 /sync/notifier/invalidation_state_tracker.h | |
parent | c170c6465249f5031564c2411cc20dda9bb244e3 (diff) | |
download | chromium_src-8cdb68911b8fe9e6c5662d5bdf8a33c77133092b.zip chromium_src-8cdb68911b8fe9e6c5662d5bdf8a33c77133092b.tar.gz chromium_src-8cdb68911b8fe9e6c5662d5bdf8a33c77133092b.tar.bz2 |
Rename InvalidationState to BootstrapData
We have a lot of things called 'state' in sync/, so we're renaming them to
better reflect their actual purpose. The 'state' in this CL is used for
bootstrapping a connection to the cache invalidation server, so we don't need
to go through the process of re-registering each ID we're interested in each
time we reconnect.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11050005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/notifier/invalidation_state_tracker.h')
-rw-r--r-- | sync/notifier/invalidation_state_tracker.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sync/notifier/invalidation_state_tracker.h b/sync/notifier/invalidation_state_tracker.h index 3105f3a..5541142 100644 --- a/sync/notifier/invalidation_state_tracker.h +++ b/sync/notifier/invalidation_state_tracker.h @@ -32,12 +32,12 @@ class InvalidationStateTracker { // Removes all state tracked for |ids|. virtual void Forget(const ObjectIdSet& ids) = 0; - // Used by InvalidationClient for persistence. |state| is opaque data we can - // present back to the client (e.g. after a restart) for it to bootstrap - // itself. - // |state| is plain old data (not valid UTF8, embedded nulls, etc). - virtual void SetInvalidationState(const std::string& state) = 0; - virtual std::string GetInvalidationState() const = 0; + // Used by invalidation::InvalidationClient for persistence. |data| is an + // opaque blob that an invalidation client can use after a restart to + // bootstrap itself. |data| is binary data (not valid UTF8, embedded nulls, + // etc). + virtual void SetBootstrapData(const std::string& data) = 0; + virtual std::string GetBootstrapData() const = 0; protected: virtual ~InvalidationStateTracker() {} |