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

Unified Diff: chrome/browser/extensions/api/declarative/url_matcher.h

Issue 9844028: Implement rules removal for WebRequestRulesRegistry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 9 months 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/url_matcher.h
diff --git a/chrome/browser/extensions/api/declarative/url_matcher.h b/chrome/browser/extensions/api/declarative/url_matcher.h
index 4ea7f66740757b3c0fd4228f3fc95e31ae954a74..0e163ebe46d15698810ce4503c1113569e9c941a 100644
--- a/chrome/browser/extensions/api/declarative/url_matcher.h
+++ b/chrome/browser/extensions/api/declarative/url_matcher.h
@@ -148,6 +148,9 @@ class URLMatcherConditionFactory {
void ForgetUnusedPatterns(
const std::set<SubstringPattern::ID>& used_patterns);
+ // Returns true if this object retains no allocated data. Only for debugging.
+ bool IsEmpty() const;
+
private:
// Creates a URLMatcherCondition according to the parameters passed.
// The URLMatcherCondition will refer to a SubstringPattern that is
@@ -233,6 +236,9 @@ class URLMatcher {
return &condition_factory_;
}
+ // Returns true if this object retains no allocated data. Only for debugging.
+ bool IsEmpty() const;
+
private:
void UpdateSubstringSetMatcher(bool full_url_conditions);
void UpdateTriggers();

Powered by Google App Engine
This is Rietveld 408576698