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(); |