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

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

Issue 1381683003: url: Get rid of UTF16Char type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 4 years, 11 months 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
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/KURL.cpp ('k') | no next file » | 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 "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
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_
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/KURL.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698