Chromium Code Reviews| 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 #include "base/values.h" | |
|
akalin
2011/09/15 19:56:44
forward-declare Value instead
not at google - send to devlin
2011/09/16 05:18:59
Done.
| |
| 10 #include "chrome/browser/sync/api/sync_data.h" | |
| 11 #include "chrome/browser/sync/api/sync_change.h" | |
| 12 | |
| 13 namespace extension_settings_sync_util { | |
| 14 | |
| 15 // Creates a SyncData object for an extension setting. | |
| 16 SyncData CreateData( | |
| 17 const std::string& extension_id, | |
| 18 const std::string& key, | |
| 19 const Value& value); | |
| 20 | |
| 21 // Creates an "add" sync change for an extension setting. | |
| 22 SyncChange CreateAdd( | |
| 23 const std::string& extension_id, | |
| 24 const std::string& key, | |
| 25 const Value& value); | |
| 26 | |
| 27 // Creates an "update" sync change for an extension setting. | |
| 28 SyncChange CreateUpdate( | |
| 29 const std::string& extension_id, | |
| 30 const std::string& key, | |
| 31 const Value& value); | |
| 32 | |
| 33 // Creates a "delete" sync change for an extension setting. | |
| 34 SyncChange CreateDelete( | |
| 35 const std::string& extension_id, const std::string& key); | |
| 36 | |
| 37 } // namespace extension_settings_sync_util | |
| 38 | |
| 39 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_SYNC_UTIL_H_ | |
| OLD | NEW |