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

Unified Diff: chrome/browser/extensions/api/declarative/substring_set_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/substring_set_matcher.h
diff --git a/chrome/browser/extensions/api/declarative/substring_set_matcher.h b/chrome/browser/extensions/api/declarative/substring_set_matcher.h
index 149ac14db241c9aea43ae33d882cf3e1bcdf44e1..6f0e233339615db6082788f7fdde6feede54e44f 100644
--- a/chrome/browser/extensions/api/declarative/substring_set_matcher.h
+++ b/chrome/browser/extensions/api/declarative/substring_set_matcher.h
@@ -68,6 +68,9 @@ class SubstringSetMatcher {
bool Match(const std::string& text,
std::set<SubstringPattern::ID>* matches) const;
+ // Returns true if this object retains no allocated data. Only for debugging.
+ bool IsEmpty() const;
+
private:
// A node of an Aho Corasick Tree. This is implemented according to
// http://www.cs.uku.fi/~kilpelai/BSA05/lectures/slides04.pdf

Powered by Google App Engine
This is Rietveld 408576698