Searched refs:URLMatcherPortFilter (Results 1 – 6 of 6) sorted by relevance
111 scoped_ptr<URLMatcherPortFilter> url_matcher_port_filter; in CreateFromURLFilterDictionary()238 scoped_ptr<URLMatcherPortFilter> URLMatcherFactory::CreateURLMatcherPorts( in CreateURLMatcherPorts()241 std::vector<URLMatcherPortFilter::Range> ranges; in CreateURLMatcherPorts()245 return scoped_ptr<URLMatcherPortFilter>(); in CreateURLMatcherPorts()254 ranges.push_back(URLMatcherPortFilter::CreateRange(port)); in CreateURLMatcherPorts()261 return scoped_ptr<URLMatcherPortFilter>(); in CreateURLMatcherPorts()263 ranges.push_back(URLMatcherPortFilter::CreateRange(from, to)); in CreateURLMatcherPorts()266 return scoped_ptr<URLMatcherPortFilter>(); in CreateURLMatcherPorts()270 return scoped_ptr<URLMatcherPortFilter>(new URLMatcherPortFilter(ranges)); in CreateURLMatcherPorts()
233 class URL_MATCHER_EXPORT URLMatcherPortFilter {237 explicit URLMatcherPortFilter(const std::vector<Range>& ranges);238 ~URLMatcherPortFilter();249 DISALLOW_COPY_AND_ASSIGN(URLMatcherPortFilter);269 scoped_ptr<URLMatcherPortFilter> port_filter);283 scoped_ptr<URLMatcherPortFilter> port_filter_;
559 URLMatcherPortFilter::URLMatcherPortFilter( in URLMatcherPortFilter() function in url_matcher::URLMatcherPortFilter560 const std::vector<URLMatcherPortFilter::Range>& ranges) in URLMatcherPortFilter()563 URLMatcherPortFilter::~URLMatcherPortFilter() {} in ~URLMatcherPortFilter()565 bool URLMatcherPortFilter::IsMatch(const GURL& url) const { in IsMatch()576 URLMatcherPortFilter::Range URLMatcherPortFilter::CreateRange(int from, in CreateRange()582 URLMatcherPortFilter::Range URLMatcherPortFilter::CreateRange(int port) { in CreateRange()602 scoped_ptr<URLMatcherPortFilter> port_filter) in URLMatcherConditionSet()
48 TEST(URLMatcherPortFilter, TestMatching) { in TEST() argument49 std::vector<URLMatcherPortFilter::Range> ranges; in TEST()50 ranges.push_back(URLMatcherPortFilter::CreateRange(80, 90)); in TEST()51 ranges.push_back(URLMatcherPortFilter::CreateRange(8080)); in TEST()52 URLMatcherPortFilter filter(ranges); in TEST()456 scoped_ptr<URLMatcherPortFilter>())); in TEST()463 scoped_ptr<URLMatcherPortFilter>())); in TEST()467 std::vector<URLMatcherPortFilter::Range> ranges; in TEST()468 ranges.push_back(URLMatcherPortFilter::CreateRange(80)); in TEST()469 scoped_ptr<URLMatcherPortFilter> filter(new URLMatcherPortFilter(ranges)); in TEST()
55 static scoped_ptr<URLMatcherPortFilter> CreateURLMatcherPorts(
37 using url_matcher::URLMatcherPortFilter;258 scoped_ptr<URLMatcherPortFilter> port_filter; in CreateConditionSet()260 std::vector<URLMatcherPortFilter::Range> ranges; in CreateConditionSet()261 ranges.push_back(URLMatcherPortFilter::CreateRange(port)); in CreateConditionSet()262 port_filter.reset(new URLMatcherPortFilter(ranges)); in CreateConditionSet()