Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome/browser/extensions/settings/settings_api.h

Issue 9284013: Extension Storage API: expose storage quota information to extensions, via: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with use-after-free fixed Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/settings/failing_settings_storage.cc ('k') | chrome/browser/extensions/settings/settings_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698