OLD | NEW |
(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_ |
OLD | NEW |