Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: url/third_party/mozilla/url_parse.h

Issue 23835019: Support URL fragment resolution againt non-hierarchical schemes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: brettw2 Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « url/gurl_unittest.cc ('k') | url/third_party/mozilla/url_parse.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ 5 #ifndef URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_
6 #define URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ 6 #define URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 int url_len, 231 int url_len,
232 Parsed* parsed); 232 Parsed* parsed);
233 URL_EXPORT void ParseStandardURL(const base::char16* url, 233 URL_EXPORT void ParseStandardURL(const base::char16* url,
234 int url_len, 234 int url_len,
235 Parsed* parsed); 235 Parsed* parsed);
236 236
237 // PathURL is for when the scheme is known not to have an authority (host) 237 // PathURL is for when the scheme is known not to have an authority (host)
238 // section but that aren't file URLs either. The scheme is parsed, and 238 // section but that aren't file URLs either. The scheme is parsed, and
239 // everything after the scheme is considered as the path. This is used for 239 // everything after the scheme is considered as the path. This is used for
240 // things like "about:" and "javascript:" 240 // things like "about:" and "javascript:"
241 URL_EXPORT void ParsePathURL(const char* url, int url_len, Parsed* parsed); 241 URL_EXPORT void ParsePathURL(const char* url,
242 int url_len,
243 bool trim_path_end,
244 Parsed* parsed);
242 URL_EXPORT void ParsePathURL(const base::char16* url, 245 URL_EXPORT void ParsePathURL(const base::char16* url,
243 int url_len, 246 int url_len,
247 bool trim_path_end,
244 Parsed* parsed); 248 Parsed* parsed);
245 249
246 // FileURL is for file URLs. There are some special rules for interpreting 250 // FileURL is for file URLs. There are some special rules for interpreting
247 // these. 251 // these.
248 URL_EXPORT void ParseFileURL(const char* url, int url_len, Parsed* parsed); 252 URL_EXPORT void ParseFileURL(const char* url, int url_len, Parsed* parsed);
249 URL_EXPORT void ParseFileURL(const base::char16* url, 253 URL_EXPORT void ParseFileURL(const base::char16* url,
250 int url_len, 254 int url_len,
251 Parsed* parsed); 255 Parsed* parsed);
252 256
253 // Filesystem URLs are structured differently than other URLs. 257 // Filesystem URLs are structured differently than other URLs.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 Component* key, 363 Component* key,
360 Component* value); 364 Component* value);
361 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, 365 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url,
362 Component* query, 366 Component* query,
363 Component* key, 367 Component* key,
364 Component* value); 368 Component* value);
365 369
366 } // namespace url_parse 370 } // namespace url_parse
367 371
368 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ 372 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_
OLDNEW
« no previous file with comments | « url/gurl_unittest.cc ('k') | url/third_party/mozilla/url_parse.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698