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

Unified Diff: chrome/browser/sync/notifier/invalidation_util.h

Issue 2861034: Decomped registration logic into its own class. (Closed)
Patch Set: synced to head Created 10 years, 6 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
Index: chrome/browser/sync/notifier/invalidation_util.h
diff --git a/chrome/browser/sync/notifier/invalidation_util.h b/chrome/browser/sync/notifier/invalidation_util.h
index 3ca5fe9d9856e15a007b38b576b6d79f8180ddcf..92e6a6e4766706dba47ee5979aad24a0a35a3e96 100644
--- a/chrome/browser/sync/notifier/invalidation_util.h
+++ b/chrome/browser/sync/notifier/invalidation_util.h
@@ -9,12 +9,19 @@
#include <string>
+#include "chrome/browser/sync/syncable/model_type.h"
#include "google/cacheinvalidation/invalidation-client.h"
namespace sync_notifier {
void RunAndDeleteClosure(invalidation::Closure* task);
+bool RealModelTypeToObjectId(syncable::ModelType model_type,
+ invalidation::ObjectId* object_id);
+
+bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id,
+ syncable::ModelType* model_type);
+
// We need to write our own protobuf-to-string functions because we
// use LITE_RUNTIME, which doesn't support DebugString().
« no previous file with comments | « chrome/browser/sync/notifier/chrome_invalidation_client.cc ('k') | chrome/browser/sync/notifier/invalidation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698