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_STORAGE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_STORAGE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_STORAGE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_STORAGE_API_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 "chrome/browser/extensions/api/storage/settings_observer.h" | |
11 #include "chrome/browser/extensions/chrome_extension_function.h" | 10 #include "chrome/browser/extensions/chrome_extension_function.h" |
12 #include "extensions/browser/api/storage/settings_namespace.h" | 11 #include "extensions/browser/api/storage/settings_namespace.h" |
| 12 #include "extensions/browser/api/storage/settings_observer.h" |
13 #include "extensions/browser/value_store/value_store.h" | 13 #include "extensions/browser/value_store/value_store.h" |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 | 16 |
17 // Superclass of all settings functions. | 17 // Superclass of all settings functions. |
18 class SettingsFunction : public ChromeAsyncExtensionFunction { | 18 class SettingsFunction : public ChromeAsyncExtensionFunction { |
19 protected: | 19 protected: |
20 SettingsFunction(); | 20 SettingsFunction(); |
21 virtual ~SettingsFunction(); | 21 virtual ~SettingsFunction(); |
22 | 22 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 protected: | 134 protected: |
135 virtual ~StorageStorageAreaGetBytesInUseFunction() {} | 135 virtual ~StorageStorageAreaGetBytesInUseFunction() {} |
136 | 136 |
137 // SettingsFunction: | 137 // SettingsFunction: |
138 virtual bool RunWithStorage(ValueStore* storage) OVERRIDE; | 138 virtual bool RunWithStorage(ValueStore* storage) OVERRIDE; |
139 }; | 139 }; |
140 | 140 |
141 } // namespace extensions | 141 } // namespace extensions |
142 | 142 |
143 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_STORAGE_API_H_ | 143 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_STORAGE_API_H_ |
OLD | NEW |