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

Unified Diff: chrome/common/extensions/extension.h

Issue 7564037: Apps/Extensions Sync refactoring -- delete most of the old glue, implement new sync API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 4 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/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index e46cba12900b5a5b17993deb43983e434283259e..b8b49553aa43cf4780e28b5a272fe100ed58b542 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -105,6 +105,12 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
TYPE_PACKAGED_APP
};
+ enum SyncType {
asargent_no_longer_on_chrome 2011/08/12 20:50:39 Do these literal values end up hardcoded into prot
+ SYNC_TYPE_NONE = 0,
+ SYNC_TYPE_EXTENSION,
+ SYNC_TYPE_APP
+ };
+
// An NPAPI plugin included in the extension.
struct PluginInfo {
FilePath path; // Path to the plugin.
@@ -481,6 +487,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// Returns true if this extension or app includes areas within |origin|.
bool OverlapsWithOrigin(const GURL& origin) const;
+ // Returns the sync bucket to use for this extension.
+ SyncType GetSyncType() const;
+
// Accessors:
const FilePath& path() const { return path_; }

Powered by Google App Engine
This is Rietveld 408576698