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

Unified Diff: chrome/browser/sync/engine/syncapi.h

Issue 2749005: Added extensions sync-related constants, switches, and clauses. (Closed)
Patch Set: Changed comment to be ocnsistent 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
« no previous file with comments | « no previous file | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncapi.h
diff --git a/chrome/browser/sync/engine/syncapi.h b/chrome/browser/sync/engine/syncapi.h
index 48aa7071b89daeaf824f31f91b33660e4db011a0..7b2b1658387593b8d092d569ff39d22fdc70aa03 100644
--- a/chrome/browser/sync/engine/syncapi.h
+++ b/chrome/browser/sync/engine/syncapi.h
@@ -79,6 +79,7 @@ namespace sync_pb {
class AutofillSpecifics;
class BookmarkSpecifics;
class EntitySpecifics;
+class ExtensionSpecifics;
class PasswordSpecifics;
class PreferenceSpecifics;
class PasswordSpecifics;
@@ -195,6 +196,10 @@ class BaseNode {
// data. Can only be called if GetModelType() == TYPED_URLS.
const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const;
+ // Getter specific to the EXTENSIONS datatype. Returns protobuf
+ // data. Can only be called if GetModelType() == EXTENSIONS.
+ const sync_pb::ExtensionSpecifics& GetExtensionSpecifics() const;
+
// Returns the local external ID associated with the node.
int64 GetExternalId() const;
@@ -314,6 +319,10 @@ class WriteNode : public BaseNode {
// Should only be called if GetModelType() == TYPED_URLS.
void SetTypedUrlSpecifics(const sync_pb::TypedUrlSpecifics& specifics);
+ // Set the extension specifics (id, update url, enabled state, etc).
+ // Should only be called if GetModelType() == EXTENSIONS.
+ void SetExtensionSpecifics(const sync_pb::ExtensionSpecifics& specifics);
+
// Implementation of BaseNode's abstract virtual accessors.
virtual const syncable::Entry* GetEntry() const;
@@ -345,6 +354,8 @@ class WriteNode : public BaseNode {
const sync_pb::ThemeSpecifics& new_value);
void PutTypedUrlSpecificsAndMarkForSyncing(
const sync_pb::TypedUrlSpecifics& new_value);
+ void PutExtensionSpecificsAndMarkForSyncing(
+ const sync_pb::ExtensionSpecifics& new_value);
void PutSpecificsAndMarkForSyncing(
const sync_pb::EntitySpecifics& specifics);
« no previous file with comments | « no previous file | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698