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

Unified Diff: chrome/browser/extensions/api/declarative_content/content_rules_registry.h

Issue 53273002: Decouple RulesCacheDelegate from RulesRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_rules_registry_with_cache
Patch Set: Updated Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/declarative_content/content_rules_registry.h
diff --git a/chrome/browser/extensions/api/declarative_content/content_rules_registry.h b/chrome/browser/extensions/api/declarative_content/content_rules_registry.h
index 38e8cc01d6c3eb7bb28524f85b49d6aaed5b9f04..c3f62f2f3bfbb5b33d2e6b49f0d1212c1735c7e4 100644
--- a/chrome/browser/extensions/api/declarative_content/content_rules_registry.h
+++ b/chrome/browser/extensions/api/declarative_content/content_rules_registry.h
@@ -64,8 +64,7 @@ class ContentRulesRegistry : public RulesRegistry,
public:
// For testing, |ui_part| can be NULL. In that case it constructs the
// registry with storage functionality suspended.
- ContentRulesRegistry(Profile* profile,
- scoped_ptr<RulesCacheDelegate>* ui_part);
+ ContentRulesRegistry(Profile* profile, RulesCacheDelegate* cache_delegate);
// Applies all content rules given an update (CSS match change or
// page navigation, for now) from the renderer.
@@ -121,8 +120,6 @@ class ContentRulesRegistry : public RulesRegistry,
typedef std::map<ContentRule::GlobalRuleId, linked_ptr<ContentRule> >
RulesMap;
- Profile* const profile_;
-
// Map that tells us which ContentRules may match under the condition that
// the URLMatcherConditionSet::ID was returned by the |url_matcher_|.
URLMatcherIdToRule match_id_to_rule_;

Powered by Google App Engine
This is Rietveld 408576698