Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Unified Diff: sync/notifier/invalidator_factory.h

Issue 12092091: Separate sync and invalidation client IDs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/notifier/invalidator.h ('k') | sync/notifier/invalidator_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/invalidator_factory.h
diff --git a/sync/notifier/invalidator_factory.h b/sync/notifier/invalidator_factory.h
index f7bd3e0f1cf9f911110b75af8d557822925476fe..782850eb4913cce31dfb83c87892658e56d7d50b 100644
--- a/sync/notifier/invalidator_factory.h
+++ b/sync/notifier/invalidator_factory.h
@@ -36,13 +36,18 @@ class SYNC_EXPORT InvalidatorFactory {
// factory from which it was created. Can be called on any thread.
Invalidator* CreateInvalidator();
+ // Returns the unique ID that was (or will be) passed to the invalidator.
+ std::string GetInvalidatorClientId() const;
+
private:
const notifier::NotifierOptions notifier_options_;
+
+ // Some of these should be const, but can't be set up in member initializers.
+ InvalidationStateMap initial_invalidation_state_map_;
const std::string client_info_;
- const InvalidationStateMap initial_invalidation_state_map_;
- const std::string invalidation_bootstrap_data_;
- const WeakHandle<InvalidationStateTracker>
- invalidation_state_tracker_;
+ std::string invalidator_client_id_;
+ std::string invalidation_bootstrap_data_;
+ WeakHandle<InvalidationStateTracker> invalidation_state_tracker_;
};
} // namespace syncer
« no previous file with comments | « sync/notifier/invalidator.h ('k') | sync/notifier/invalidator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698