| 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 |
| 11 namespace url { | 11 namespace url { |
| 12 | 12 |
| 13 // Deprecated, but WebKit/WebCore/platform/KURLGooglePrivate.h and | |
| 14 // KURLGoogle.cpp still rely on this type. | |
| 15 typedef base::char16 UTF16Char; | |
| 16 | |
| 17 // Component ------------------------------------------------------------------ | 13 // Component ------------------------------------------------------------------ |
| 18 | 14 |
| 19 // Represents a substring for URL parsing. | 15 // Represents a substring for URL parsing. |
| 20 struct Component { | 16 struct Component { |
| 21 Component() : begin(0), len(-1) {} | 17 Component() : begin(0), len(-1) {} |
| 22 | 18 |
| 23 // Normal constructor: takes an offset and a length. | 19 // Normal constructor: takes an offset and a length. |
| 24 Component(int b, int l) : begin(b), len(l) {} | 20 Component(int b, int l) : begin(b), len(l) {} |
| 25 | 21 |
| 26 int end() const { | 22 int end() const { |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 Component* key, | 356 Component* key, |
| 361 Component* value); | 357 Component* value); |
| 362 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, | 358 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, |
| 363 Component* query, | 359 Component* query, |
| 364 Component* key, | 360 Component* key, |
| 365 Component* value); | 361 Component* value); |
| 366 | 362 |
| 367 } // namespace url | 363 } // namespace url |
| 368 | 364 |
| 369 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ | 365 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ |
| OLD | NEW |