DNR: Implement evaluation of regex rules.
Introduce RegexRulesMatcher which evaluates all regex rules within an extension ruleset. RulesetMatcher combines the results from ExtensionUrlPatternIndexMatcher and RegexRulesMatcher and is an abstraction over the complete ruleset. RegexRulesMatcher uses the FilteredRE2 class from the re2 library to achieve fast matching of a set of declarative regex rules against a request. BUG=974391 Doc=https://docs.google.com/document/d/1mRErUMII_gSSPaHmxyn31UOYWUaZLj0xOaezekxD2-Y/edit?usp=sharing (Internal only) Change-Id: I82d70fcf381aeec1d5a93af33a36db41e4704608 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1892132 Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Reviewed-by:Istiaque Ahmed <lazyboy@chromium.org> Reviewed-by:
Dominic Battré <battre@chromium.org> Cr-Commit-Position: refs/heads/master@{#718869}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment