| Index: chrome/browser/extensions/extension_sync_data.h
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_sync_data.h (revision 107300)
|
| +++ chrome/browser/extensions/extension_sync_data.h (working copy)
|
| @@ -16,7 +16,10 @@
|
|
|
| class ExtensionService;
|
| class SyncData;
|
| -namespace sync_pb { class ExtensionSpecifics; }
|
| +namespace sync_pb {
|
| +class AppSpecifics;
|
| +class ExtensionSpecifics;
|
| +}
|
|
|
| // A class that encapsulates the synced properties of an Extension.
|
| class ExtensionSyncData {
|
| @@ -26,11 +29,14 @@
|
| explicit ExtensionSyncData(const SyncChange& sync_change);
|
| ExtensionSyncData(const Extension& extension,
|
| bool enabled,
|
| - bool incognito_enabled);
|
| + bool incognito_enabled,
|
| + bool notifications_initial_setup_done,
|
| + bool notifications_disabled);
|
| ~ExtensionSyncData();
|
|
|
| // Convert an ExtensionSyncData back out to a sync structure.
|
| void PopulateSyncSpecifics(sync_pb::ExtensionSpecifics* specifics) const;
|
| + void PopulateAppSpecifics(sync_pb::AppSpecifics* specifics) const;
|
| SyncData GetSyncData() const;
|
| SyncChange GetSyncChange(SyncChange::SyncChangeType change_type) const;
|
|
|
| @@ -51,6 +57,14 @@
|
| // Used only for debugging.
|
| const std::string& name() const { return name_; }
|
|
|
| + bool notifications_initial_setup_done() const {
|
| + return notifications_initial_setup_done_;
|
| + }
|
| +
|
| + bool notifications_disabled() const {
|
| + return notifications_disabled_;
|
| + }
|
| +
|
| private:
|
| void PopulateFromExtensionSpecifics(
|
| const sync_pb::ExtensionSpecifics& specifics);
|
| @@ -64,6 +78,8 @@
|
| Version version_;
|
| GURL update_url_;
|
| std::string name_;
|
| + bool notifications_initial_setup_done_;
|
| + bool notifications_disabled_;
|
| };
|
|
|
| #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_
|
|
|