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

Side by Side Diff: chrome/browser/extensions/api/storage/syncable_settings_storage.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_SYNCABLE_SETTINGS_STORAGE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/observer_list_threadsafe.h" 17 #include "base/observer_list_threadsafe.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "chrome/browser/extensions/api/storage/setting_sync_data.h" 19 #include "chrome/browser/extensions/api/storage/setting_sync_data.h"
20 #include "components/sync/api/sync_change.h"
21 #include "components/sync/api/syncable_service.h"
20 #include "extensions/browser/api/storage/settings_observer.h" 22 #include "extensions/browser/api/storage/settings_observer.h"
21 #include "extensions/browser/value_store/value_store.h" 23 #include "extensions/browser/value_store/value_store.h"
22 #include "sync/api/sync_change.h"
23 #include "sync/api/syncable_service.h"
24 24
25 namespace extensions { 25 namespace extensions {
26 26
27 class SettingsSyncProcessor; 27 class SettingsSyncProcessor;
28 28
29 // Decorates a ValueStore with sync behaviour. 29 // Decorates a ValueStore with sync behaviour.
30 class SyncableSettingsStorage : public ValueStore { 30 class SyncableSettingsStorage : public ValueStore {
31 public: 31 public:
32 SyncableSettingsStorage( 32 SyncableSettingsStorage(
33 const scoped_refptr<SettingsObserverList>& observers, 33 const scoped_refptr<SettingsObserverList>& observers,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 const syncer::ModelType sync_type_; 125 const syncer::ModelType sync_type_;
126 const syncer::SyncableService::StartSyncFlare flare_; 126 const syncer::SyncableService::StartSyncFlare flare_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(SyncableSettingsStorage); 128 DISALLOW_COPY_AND_ASSIGN(SyncableSettingsStorage);
129 }; 129 };
130 130
131 } // namespace extensions 131 } // namespace extensions
132 132
133 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_ 133 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698