| OLD | NEW |
| 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 "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "url/url_export.h" | 9 #include "url/url_export.h" |
| 10 | 10 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 URL_EXPORT void ParseFileSystemURL(const base::char16* url, | 254 URL_EXPORT void ParseFileSystemURL(const base::char16* url, |
| 255 int url_len, | 255 int url_len, |
| 256 Parsed* parsed); | 256 Parsed* parsed); |
| 257 | 257 |
| 258 // MailtoURL is for mailto: urls. They are made up scheme,path,query | 258 // MailtoURL is for mailto: urls. They are made up scheme,path,query |
| 259 URL_EXPORT void ParseMailtoURL(const char* url, int url_len, Parsed* parsed); | 259 URL_EXPORT void ParseMailtoURL(const char* url, int url_len, Parsed* parsed); |
| 260 URL_EXPORT void ParseMailtoURL(const base::char16* url, | 260 URL_EXPORT void ParseMailtoURL(const base::char16* url, |
| 261 int url_len, | 261 int url_len, |
| 262 Parsed* parsed); | 262 Parsed* parsed); |
| 263 | 263 |
| 264 // Non standard urls with unknown schemes. |
| 265 URL_EXPORT void ParseNonStandardURL(const char* url, |
| 266 int url_len, |
| 267 Parsed* parsed); |
| 268 URL_EXPORT void ParseNonStandardURL(const base::char16* url, |
| 269 int url_len, |
| 270 Parsed* parsed); |
| 271 |
| 264 // Helper functions ----------------------------------------------------------- | 272 // Helper functions ----------------------------------------------------------- |
| 265 | 273 |
| 266 // Locates the scheme according to the URL parser's rules. This function is | 274 // Locates the scheme according to the URL parser's rules. This function is |
| 267 // designed so the caller can find the scheme and call the correct Init* | 275 // designed so the caller can find the scheme and call the correct Init* |
| 268 // function according to their known scheme types. | 276 // function according to their known scheme types. |
| 269 // | 277 // |
| 270 // It also does not perform any validation on the scheme. | 278 // It also does not perform any validation on the scheme. |
| 271 // | 279 // |
| 272 // This function will return true if the scheme is found and will put the | 280 // This function will return true if the scheme is found and will put the |
| 273 // scheme's range into *scheme. False means no scheme could be found. Note | 281 // scheme's range into *scheme. False means no scheme could be found. Note |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 Component* key, | 364 Component* key, |
| 357 Component* value); | 365 Component* value); |
| 358 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, | 366 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, |
| 359 Component* query, | 367 Component* query, |
| 360 Component* key, | 368 Component* key, |
| 361 Component* value); | 369 Component* value); |
| 362 | 370 |
| 363 } // namespace url | 371 } // namespace url |
| 364 | 372 |
| 365 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ | 373 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ |
| OLD | NEW |