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

Unified Diff: components/invalidation/invalidation_prefs.cc

Issue 288353003: Componentize invalidator storage + preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « components/invalidation/invalidation_prefs.h ('k') | components/invalidation/invalidator_storage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/invalidation/invalidation_prefs.cc
diff --git a/components/invalidation/invalidation_prefs.cc b/components/invalidation/invalidation_prefs.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5f71bd09d7e361bbd98f5ef4478cca80a8257d07
--- /dev/null
+++ b/components/invalidation/invalidation_prefs.cc
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/invalidation/invalidation_prefs.h"
+
+namespace invalidation {
+namespace prefs {
+
+// An ID to uniquely identify this client to the invalidator service.
+const char kInvalidatorClientId[] = "invalidator.client_id";
+
+// Opaque state from the invalidation subsystem that is persisted via prefs.
+// The value is base 64 encoded.
+const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state";
+
+// List of received invalidations that have not been acted on by any clients
+// yet. Used to keep invalidation clients in sync in case of a restart.
+const char kInvalidatorSavedInvalidations[] = "invalidator.saved_invalidations";
+
+} // namespace prefs
+} // namespace invalidation
« no previous file with comments | « components/invalidation/invalidation_prefs.h ('k') | components/invalidation/invalidator_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698