Index: chrome/browser/extensions/api/declarative/declarative_api.h |
diff --git a/chrome/browser/extensions/api/declarative/declarative_api.h b/chrome/browser/extensions/api/declarative/declarative_api.h |
index e8fb7392909fab9ffad7d6b698cc23f7e24642f1..00948a64b47b9865dc7e7139e1a07d3ee7e71d5a 100644 |
--- a/chrome/browser/extensions/api/declarative/declarative_api.h |
+++ b/chrome/browser/extensions/api/declarative/declarative_api.h |
@@ -20,6 +20,7 @@ class RulesFunction : public AsyncExtensionFunction { |
virtual ~RulesFunction(); |
// ExtensionFunction: |
+ virtual bool HasPermission() OVERRIDE; |
virtual bool RunImpl() OVERRIDE; |
// Concrete implementation of the RulesFunction that is being called |
@@ -28,6 +29,13 @@ class RulesFunction : public AsyncExtensionFunction { |
virtual bool RunImplOnCorrectThread() = 0; |
scoped_refptr<RulesRegistry> rules_registry_; |
+ |
+ private: |
+ // Initializes |event_name_| from |args_| if it hasn't been already, |
+ // and returns true if it was successful. |
+ bool Init(); |
+ |
+ std::string event_name_; |
}; |
class AddRulesFunction : public RulesFunction { |