OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_PROCESSOR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_PROCESSOR_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_PROCESSOR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_PROCESSOR_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "components/sync/api/sync_error.h" | 12 #include "components/sync/model/sync_error.h" |
13 #include "extensions/browser/value_store/value_store_change.h" | 13 #include "extensions/browser/value_store/value_store_change.h" |
14 | 14 |
15 namespace syncer { | 15 namespace syncer { |
16 class SyncChangeProcessor; | 16 class SyncChangeProcessor; |
17 } // namespace syncer | 17 } // namespace syncer |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 // A wrapper for a SyncChangeProcessor that deals specifically with the syncing | 21 // A wrapper for a SyncChangeProcessor that deals specifically with the syncing |
22 // of a single extension's settings. Handles: | 22 // of a single extension's settings. Handles: |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Keys of the settings that are currently being synced. Used to decide what | 59 // Keys of the settings that are currently being synced. Used to decide what |
60 // kind of action (ADD, UPDATE, REMOVE) to send to sync. | 60 // kind of action (ADD, UPDATE, REMOVE) to send to sync. |
61 std::set<std::string> synced_keys_; | 61 std::set<std::string> synced_keys_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(SettingsSyncProcessor); | 63 DISALLOW_COPY_AND_ASSIGN(SettingsSyncProcessor); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace extensions | 66 } // namespace extensions |
67 | 67 |
68 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_PROCESSOR_H_ | 68 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_PROCESSOR_H_ |
OLD | NEW |