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

Unified Diff: chrome/browser/extensions/api/storage/settings_sync_util.h

Issue 184043031: Split up extensions storage API implementations for sync and local storage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (split_sync) Created 6 years, 9 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/extensions/api/storage/settings_sync_util.h
diff --git a/chrome/browser/extensions/api/storage/settings_sync_util.h b/chrome/browser/extensions/api/storage/settings_sync_util.h
index 0c6df0460f20df6c4d2c04d8a8d035e10d2fd825..b4cbced0da2957f6df6fd916344baf73685e97d5 100644
--- a/chrome/browser/extensions/api/storage/settings_sync_util.h
+++ b/chrome/browser/extensions/api/storage/settings_sync_util.h
@@ -5,13 +5,20 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_UTIL_H_
#define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_UTIL_H_
-
#include "sync/api/sync_change.h"
#include "sync/api/sync_data.h"
namespace base {
class Value;
-} // namespace base
+}
+
+namespace content {
+class BrowserContext;
+}
+
+namespace syncer {
+class SyncableService;
+}
namespace extensions {
@@ -44,6 +51,11 @@ syncer::SyncChange CreateDelete(
const std::string& key,
syncer::ModelType type);
+// Returns the sync service for settings. Must be called on the FILE thread.
+// |type| must be either APP_SETTINGS or EXTENSION_SETTINGS.
+syncer::SyncableService* GetSyncableService(content::BrowserContext* context,
+ syncer::ModelType type);
+
} // namespace settings_sync_util
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698