| 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_SETTINGS_SETTINGS_FRONTEND_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_FRONTEND_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_FRONTEND_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_FRONTEND_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/extensions/settings/settings_namespace.h" | 13 #include "chrome/browser/extensions/api/storage/settings_namespace.h" |
| 14 #include "chrome/browser/extensions/settings/settings_observer.h" | 14 #include "chrome/browser/extensions/api/storage/settings_observer.h" |
| 15 #include "chrome/browser/extensions/settings/settings_storage_factory.h" | 15 #include "chrome/browser/extensions/api/storage/settings_storage_factory.h" |
| 16 #include "chrome/browser/extensions/settings/settings_storage_quota_enforcer.h" | 16 #include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.
h" |
| 17 #include "chrome/browser/extensions/settings/value_store_cache.h" | 17 #include "chrome/browser/extensions/api/storage/value_store_cache.h" |
| 18 #include "sync/api/syncable_service.h" | 18 #include "sync/api/syncable_service.h" |
| 19 | 19 |
| 20 class Profile; | 20 class Profile; |
| 21 | 21 |
| 22 namespace extensions { | 22 namespace extensions { |
| 23 | 23 |
| 24 // The component of extension settings which runs on the UI thread, as opposed | 24 // The component of extension settings which runs on the UI thread, as opposed |
| 25 // to SettingsBackend which lives on the FILE thread. | 25 // to SettingsBackend which lives on the FILE thread. |
| 26 // All public methods, must be called on the UI thread, with the exception of | 26 // All public methods, must be called on the UI thread, with the exception of |
| 27 // GetBackendForSync(), which must be called on the FILE thread. | 27 // GetBackendForSync(), which must be called on the FILE thread. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // Maps a known namespace to its corresponding ValueStoreCache. The caches | 84 // Maps a known namespace to its corresponding ValueStoreCache. The caches |
| 85 // are owned by this object. | 85 // are owned by this object. |
| 86 CacheMap caches_; | 86 CacheMap caches_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(SettingsFrontend); | 88 DISALLOW_COPY_AND_ASSIGN(SettingsFrontend); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace extensions | 91 } // namespace extensions |
| 92 | 92 |
| 93 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_FRONTEND_H_ | 93 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_FRONTEND_H_ |
| OLD | NEW |