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

Side by Side Diff: chrome/browser/extensions/extension_settings_sync_util.h

Issue 7977018: Enable sync for the settings from the Extension Settings API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix race condition in ExtensionSettingsUIWrapper::Core Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_SYNC_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_SYNC_UTIL_H_
7 #pragma once
8
9
10 #include "chrome/browser/sync/api/sync_data.h"
11 #include "chrome/browser/sync/api/sync_change.h"
12
13 namespace base {
14 class Value;
15 } // namespace base
16
17 namespace extension_settings_sync_util {
18
19 // Creates a SyncData object for an extension setting.
20 SyncData CreateData(
21 const std::string& extension_id,
22 const std::string& key,
23 const base::Value& value);
24
25 // Creates an "add" sync change for an extension setting.
26 SyncChange CreateAdd(
27 const std::string& extension_id,
28 const std::string& key,
29 const base::Value& value);
30
31 // Creates an "update" sync change for an extension setting.
32 SyncChange CreateUpdate(
33 const std::string& extension_id,
34 const std::string& key,
35 const base::Value& value);
36
37 // Creates a "delete" sync change for an extension setting.
38 SyncChange CreateDelete(
39 const std::string& extension_id, const std::string& key);
40
41 } // namespace extension_settings_sync_util
42
43 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_SYNC_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698