Home | History | Annotate | Download | only in common

Lines Matching defs:URLPattern

14 // A pattern that can be used to match URLs. A URLPattern is a very restricted
44 class URLPattern {
86 explicit URLPattern(int valid_schemes);
88 // Convenience to construct a URLPattern from a string. If the string is not
90 URLPattern(int valid_schemes, const std::string& pattern);
92 URLPattern();
93 ~URLPattern();
95 bool operator<(const URLPattern& other) const;
96 bool operator>(const URLPattern& other) const;
97 bool operator==(const URLPattern& other) const;
100 // URLPattern::PARSE_SUCCESS on success, or an error code otherwise. On
179 bool OverlapsWith(const URLPattern& other) const;
183 bool Contains(const URLPattern& other) const;
185 // Converts this URLPattern into an equivalent set of URLPatterns that don't
186 // use a wildcard in the scheme component. If this URLPattern doesn't use a
189 std::vector<URLPattern> ConvertToExplicitSchemes() const;
191 static bool EffectiveHostCompare(const URLPattern& a, const URLPattern& b) {
200 bool operator()(const URLPattern& a, const URLPattern& b) const {
206 static const char* GetParseResultString(URLPattern::ParseResult parse_result);
220 // If the URLPattern contains a wildcard scheme, returns a list of
253 // A string representing this URLPattern.
257 std::ostream& operator<<(std::ostream& out, const URLPattern& url_pattern);
259 typedef std::vector<URLPattern> URLPatternList;