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

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: 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..be6403d95689483d0b8849db1414b556dd659fde 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 IsCompletelyEmpty() const;
Matt Perry 2012/03/28 18:59:52 nit: IsEmpty should be fine... I wouldn't expect i
battre 2012/03/28 19:18:42 Done.
+
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