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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_sync_processor.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
OLDNEW
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 "extensions/browser/value_store/value_store_change.h" 13 #include "extensions/browser/value_store/value_store_change.h"
13 #include "sync/api/sync_error.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:
23 // - translating SettingChanges into calls into the Sync API. 23 // - translating SettingChanges into calls into the Sync API.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698