Lines Matching refs:URLPattern
14 // A pattern that can be used to match URLs. A URLPattern is a very restricted
44 // * We need to be able to tell users what 'sites' a given URLPattern will
74 // patterns to URLPattern, but the resulting pattern will be more restrictive
76 class URLPattern {
95 // Options for URLPattern::Parse().
117 // Construct an URLPattern with the given set of allowable schemes. See
119 explicit URLPattern(int valid_schemes);
121 // Convenience to construct a URLPattern from a string. The string is expected
124 URLPattern(int valid_schemes, const std::string& pattern);
127 // Note: don't use this directly. This exists so URLPattern can be used
129 // method private and use "friend class std::vector<URLPattern>;" as we used
131 URLPattern();
134 ~URLPattern();
159 // URLPattern::PARSE_SUCCESS on success, or an error code otherwise. On
161 // invalid state. Adding error checks to URLPattern::Parse() can cause
203 bool OverlapsWith(const URLPattern& other) const;
205 // Convert this URLPattern into an equivalent set of URLPatterns that don't
206 // use a wildcard in the scheme component. If this URLPattern doesn't use a
209 std::vector<URLPattern> ConvertToExplicitSchemes() const;
211 static bool EffectiveHostCompare(const URLPattern& a, const URLPattern& b) {
220 bool operator()(const URLPattern& a, const URLPattern& b) const {
226 static const char* GetParseResultString(URLPattern::ParseResult parse_result);
230 friend class std::vector<URLPattern>;
232 // Note: don't use this directly. This exists so URLPattern can be used
234 URLPattern();
265 typedef std::vector<URLPattern> URLPatternList;