Index: chrome/browser/extensions/extension_function.h |
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h |
index b68fd0920f323b43586c59b1a5a95656bf84e281..0f9a6fa59e130356a5e3e705c858d94b63ff3128 100644 |
--- a/chrome/browser/extensions/extension_function.h |
+++ b/chrome/browser/extensions/extension_function.h |
@@ -84,10 +84,19 @@ class ExtensionFunction |
// NULL-check. |
virtual void Run(); |
+ // Gets whether quota should be applied to this individual function |
+ // invocation. This is different to GetQuotaLimitHeuristics which is only |
+ // invoked once and then cached. |
+ // |
+ // Returns false by default. |
+ virtual bool ShouldSkipQuotaLimiting() const; |
+ |
// Optionally adds one or multiple QuotaLimitHeuristic instances suitable for |
// this function to |heuristics|. The ownership of the new QuotaLimitHeuristic |
// instances is passed to the owner of |heuristics|. |
// No quota limiting by default. |
+ // |
+ // Only called once per lifetime of the ExtensionsQuotaService. |
virtual void GetQuotaLimitHeuristics( |
QuotaLimitHeuristics* heuristics) const {} |