summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_test_api.h
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 01:43:02 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 01:43:02 +0000
commitd13950ec676bc8aa9ea493e89a4cd1aee4a41913 (patch)
tree548e23868022937d34b2966a2e08f2a3d6510bbd /chrome/browser/extensions/extension_test_api.h
parentf8c726650ef5fff6a9cc37411193c186a16f673f (diff)
downloadchromium_src-d13950ec676bc8aa9ea493e89a4cd1aee4a41913.zip
chromium_src-d13950ec676bc8aa9ea493e89a4cd1aee4a41913.tar.gz
chromium_src-d13950ec676bc8aa9ea493e89a4cd1aee4a41913.tar.bz2
Add ExtensionsQuotaService to limit abusive amounts of requests
to mutating extension functions, as discussed on chromium-dev and in Extensions quotaserver design doc. Add a hook in the dispatcher to have the quota service assess the request. Wire up bookmarks.{create, move, remove, update} to the service. BUG=19899 TEST=ExtensionsQuotaServiceTest, QuotaLimitHeuristicTest (both new) Review URL: http://codereview.chromium.org/441006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33770 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_test_api.h')
-rw-r--r--chrome/browser/extensions/extension_test_api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_test_api.h b/chrome/browser/extensions/extension_test_api.h
index 79adf13..3b89e53 100644
--- a/chrome/browser/extensions/extension_test_api.h
+++ b/chrome/browser/extensions/extension_test_api.h
@@ -25,4 +25,10 @@ class ExtensionTestLogFunction : public SyncExtensionFunction {
DECLARE_EXTENSION_FUNCTION_NAME("test.log")
};
+class ExtensionTestQuotaResetFunction : public SyncExtensionFunction {
+ ~ExtensionTestQuotaResetFunction() {}
+ virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("test.resetQuota")
+};
+
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_