Home | History | Annotate | Download | only in common

Lines Matching refs:scheme

46 const char kParseErrorMissingSchemeSeparator[] = "Missing scheme separator.";
47 const char kParseErrorInvalidScheme[] = "Invalid scheme.";
48 const char kParseErrorWrongSchemeType[] = "Wrong scheme type.";
73 bool IsStandardScheme(const std::string& scheme) {
74 // "*" gets the same treatment as a standard scheme.
75 if (scheme == "*")
78 return url::IsStandard(scheme.c_str(),
79 url::Component(0, static_cast<int>(scheme.length())));
82 bool IsValidPortForScheme(const std::string& scheme, const std::string& port) {
86 // Only accept non-wildcard ports if the scheme uses ports.
87 if (url::DefaultPortForScheme(scheme.c_str(), scheme.length()) ==
115 bool URLPattern::IsValidSchemeForExtensions(const std::string& scheme) {
117 if (scheme == kValidSchemes[i])
174 // Parse out the scheme.
178 // Some urls also use ':' alone as the scheme separator.
194 // Advance past the scheme separator.
214 // Ignore hostname if scheme is file://.
292 bool URLPattern::SetScheme(const std::string& scheme) {
294 scheme_ = scheme;
303 bool URLPattern::IsValidScheme(const std::string& scheme) const {
308 if (scheme == kValidSchemes[i] && (valid_schemes_ & kValidSchemeMasks[i]))
342 if (!MatchesScheme(test_url->scheme()))
366 if (!MatchesScheme(test_url->scheme()))
510 // Ignore hostname if scheme is file://.