Home | History | Annotate | Download | only in src

Lines Matching refs:scheme

46   // Scheme: this will append the colon.
47 bool success = CanonicalizeScheme(source.scheme, parsed.scheme,
48 output, &new_parsed->scheme);
56 // Only write the authority separators when we have a scheme.
57 if (parsed.scheme.is_valid()) {
78 &output->data()[new_parsed->scheme.begin], new_parsed->scheme.len);
120 // Returns the default port for the given canonical scheme, or PORT_UNSPECIFIED
121 // if the scheme is unknown.
122 int DefaultPortForScheme(const char* scheme, int scheme_len) {
126 if (!strncmp(scheme, "http", scheme_len))
130 if (!strncmp(scheme, "https", scheme_len))
134 if (!strncmp(scheme, "ftp", scheme_len))
136 else if (!strncmp(scheme, "wss", scheme_len))
140 if (!strncmp(scheme, "gopher", scheme_len))
144 if (!strncmp(scheme, "ws", scheme_len))