OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SETTINGS_SETTINGS_FRONTEND_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_FRONTEND_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_FRONTEND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/callback.h" | 11 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
13 #include "base/observer_list_threadsafe.h" | 15 #include "base/observer_list_threadsafe.h" |
14 #include "chrome/browser/extensions/settings/settings_leveldb_storage.h" | 16 #include "chrome/browser/extensions/settings/settings_leveldb_storage.h" |
15 #include "chrome/browser/extensions/settings/settings_observer.h" | 17 #include "chrome/browser/extensions/settings/settings_observer.h" |
16 #include "chrome/browser/sync/api/syncable_service.h" | 18 #include "chrome/browser/sync/api/syncable_service.h" |
17 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
19 | 21 |
20 class FilePath; | |
21 class Profile; | 22 class Profile; |
22 | 23 |
23 namespace extensions { | 24 namespace extensions { |
24 | 25 |
25 class SettingsStorage; | 26 class SettingsStorage; |
26 | 27 |
27 // The component of extension settings which runs on the UI thread, as opposed | 28 // The component of extension settings which runs on the UI thread, as opposed |
28 // to SettingsBackend which lives on the FILE thread. | 29 // to SettingsBackend which lives on the FILE thread. |
29 // All public methods must be called on the UI thread. | 30 // All public methods must be called on the UI thread. |
30 class SettingsFrontend { | 31 class SettingsFrontend { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Ref-counted container for the SettingsBackend object. | 96 // Ref-counted container for the SettingsBackend object. |
96 class Core; | 97 class Core; |
97 scoped_refptr<Core> core_; | 98 scoped_refptr<Core> core_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(SettingsFrontend); | 100 DISALLOW_COPY_AND_ASSIGN(SettingsFrontend); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace extensions | 103 } // namespace extensions |
103 | 104 |
104 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_FRONTEND_H_ | 105 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_FRONTEND_H_ |
OLD | NEW |