| 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_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 public: | 92 public: |
| 93 DECLARE_EXTENSION_FUNCTION_NAME("storage.clear"); | 93 DECLARE_EXTENSION_FUNCTION_NAME("storage.clear"); |
| 94 | 94 |
| 95 protected: | 95 protected: |
| 96 virtual bool RunWithStorage(SettingsStorage* storage) OVERRIDE; | 96 virtual bool RunWithStorage(SettingsStorage* storage) OVERRIDE; |
| 97 | 97 |
| 98 virtual void GetQuotaLimitHeuristics( | 98 virtual void GetQuotaLimitHeuristics( |
| 99 QuotaLimitHeuristics* heuristics) const OVERRIDE; | 99 QuotaLimitHeuristics* heuristics) const OVERRIDE; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 class GetBytesInUseSettingsFunction : public SettingsFunction { |
| 103 public: |
| 104 DECLARE_EXTENSION_FUNCTION_NAME("storage.getBytesInUse"); |
| 105 |
| 106 protected: |
| 107 virtual bool RunWithStorage(SettingsStorage* storage) OVERRIDE; |
| 108 }; |
| 109 |
| 102 } // namespace extensions | 110 } // namespace extensions |
| 103 | 111 |
| 104 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_API_H_ | 112 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_API_H_ |
| OLD | NEW |