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_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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/observer_list_threadsafe.h" | 11 #include "base/observer_list_threadsafe.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/extensions/api/storage/setting_sync_data.h" | 13 #include "chrome/browser/extensions/api/storage/setting_sync_data.h" |
14 #include "chrome/browser/extensions/api/storage/settings_observer.h" | 14 #include "extensions/browser/api/storage/settings_observer.h" |
15 #include "extensions/browser/value_store/value_store.h" | 15 #include "extensions/browser/value_store/value_store.h" |
16 #include "sync/api/sync_change.h" | 16 #include "sync/api/sync_change.h" |
17 #include "sync/api/syncable_service.h" | 17 #include "sync/api/syncable_service.h" |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 class SettingsSyncProcessor; | 21 class SettingsSyncProcessor; |
22 | 22 |
23 // Decorates a ValueStore with sync behaviour. | 23 // Decorates a ValueStore with sync behaviour. |
24 class SyncableSettingsStorage : public ValueStore { | 24 class SyncableSettingsStorage : public ValueStore { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 const syncer::ModelType sync_type_; | 111 const syncer::ModelType sync_type_; |
112 const syncer::SyncableService::StartSyncFlare flare_; | 112 const syncer::SyncableService::StartSyncFlare flare_; |
113 | 113 |
114 DISALLOW_COPY_AND_ASSIGN(SyncableSettingsStorage); | 114 DISALLOW_COPY_AND_ASSIGN(SyncableSettingsStorage); |
115 }; | 115 }; |
116 | 116 |
117 } // namespace extensions | 117 } // namespace extensions |
118 | 118 |
119 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_ | 119 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_ |
OLD | NEW |