| Index: chrome/browser/extensions/api/declarative/rules_registry_service.h
|
| diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service.h b/chrome/browser/extensions/api/declarative/rules_registry_service.h
|
| index db0485b2f8262bfc1c7c1b2753ec48811dfba90b..1910d1650b41ccc90603ce133636c4c5f6cfcdb8 100644
|
| --- a/chrome/browser/extensions/api/declarative/rules_registry_service.h
|
| +++ b/chrome/browser/extensions/api/declarative/rules_registry_service.h
|
| @@ -21,6 +21,7 @@ class NotificationSource;
|
| }
|
|
|
| namespace extensions {
|
| +class ContentRulesRegistry;
|
| class RulesRegistry;
|
| class RulesRegistryStorageDelegate;
|
| }
|
| @@ -50,6 +51,11 @@ class RulesRegistryService : public content::NotificationObserver {
|
| scoped_refptr<RulesRegistry> GetRulesRegistry(
|
| const std::string& event_name) const;
|
|
|
| + // Accessors for each type of rules registry.
|
| + ContentRulesRegistry* content_rules_registry() const {
|
| + return content_rules_registry_;
|
| + }
|
| +
|
| // For testing.
|
| void SimulateExtensionUnloaded(const std::string& extension_id);
|
| private:
|
| @@ -72,6 +78,10 @@ class RulesRegistryService : public content::NotificationObserver {
|
| // keep track of them so we can tell them to do cleanup on shutdown.
|
| std::vector<RulesRegistryStorageDelegate*> delegates_;
|
|
|
| + // Weak pointer into rule_registries_ to make it easier to handle content rule
|
| + // conditions.
|
| + ContentRulesRegistry* content_rules_registry_;
|
| +
|
| content::NotificationRegistrar registrar_;
|
|
|
| Profile* profile_;
|
|
|