diff options
author | atanasova <atanasova@chromium.org> | 2016-01-12 07:19:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-12 15:20:44 +0000 |
commit | cc731e00b79b7a854fb289ed2432d7336b50dfa1 (patch) | |
tree | f0a933aaa69ea6278c88d0a4a4d45eb9a02c1329 /components/url_matcher | |
parent | 1586f13d36d2d1246a363ac0021e0396adfb9646 (diff) | |
download | chromium_src-cc731e00b79b7a854fb289ed2432d7336b50dfa1.zip chromium_src-cc731e00b79b7a854fb289ed2432d7336b50dfa1.tar.gz chromium_src-cc731e00b79b7a854fb289ed2432d7336b50dfa1.tar.bz2 |
Initial version of showing sources of whitelists.
This current version stores information about whitelists (id and name) when the whitelista are loaded. During the filtering of an URL you can find out whather the url had any url matches and find the whitelists it came from. The current version has a separate method that fetches the whitelists information, since it will be sed in the internals page only for now. If at some point we decide to show it in other places we can merge the fitlering method with the whitelist fetching. On the internals page we show whether the website is present in a parent's whitelist and the id and name of the third part whitelists. At a later point, once the whitelists can be installed we can change the third-party whitelist section to be a link and a name.
BUG=557651
Review URL: https://codereview.chromium.org/1546053002
Cr-Commit-Position: refs/heads/master@{#368877}
Diffstat (limited to 'components/url_matcher')
-rw-r--r-- | components/url_matcher/url_matcher.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/url_matcher/url_matcher.h b/components/url_matcher/url_matcher.h index 712cb8a..552f1f3 100644 --- a/components/url_matcher/url_matcher.h +++ b/components/url_matcher/url_matcher.h @@ -312,6 +312,7 @@ class URL_MATCHER_EXPORT URLMatcherPortFilter { class URL_MATCHER_EXPORT URLMatcherConditionSet : public base::RefCounted<URLMatcherConditionSet> { public: + // Valid IDs will be >= 0. typedef int ID; typedef std::set<URLMatcherCondition> Conditions; typedef std::set<URLQueryElementMatcherCondition> QueryConditions; |