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

Side by Side Diff: url/url_canon_internal.h

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unedited changes made by the IWYU tool. 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
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_URL_CANON_INTERNAL_H_ 5 #ifndef URL_URL_CANON_INTERNAL_H_
6 #define URL_URL_CANON_INTERNAL_H_ 6 #define URL_URL_CANON_INTERNAL_H_
7 7
8 // This file is intended to be included in another C++ file where the character 8 // This file is intended to be included in another C++ file where the character
9 // types are defined. This allows us to write mostly generic code, but not have 9 // types are defined. This allows us to write mostly generic code, but not have
10 // template bloat because everything is inlined when anybody calls any of our 10 // template bloat because everything is inlined when anybody calls any of our
11 // functions. 11 // functions.
12 12
13 #include <stddef.h> 13 #include <stddef.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 15
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/strings/string16.h"
17 #include "url/url_canon.h" 18 #include "url/url_canon.h"
19 #include "url/url_export.h"
18 20
19 namespace url { 21 namespace url {
20 22
21 // Character type handling ----------------------------------------------------- 23 // Character type handling -----------------------------------------------------
22 24
23 // Bits that identify different character types. These types identify different 25 // Bits that identify different character types. These types identify different
24 // bits that are set for each 8-bit character in the kSharedCharTypeTable. 26 // bits that are set for each 8-bit character in the kSharedCharTypeTable.
27 struct Component;
Łukasz Anforowicz 2016/01/07 00:16:17 Good catch by the IWYU tool - a "const Component&"
28 struct Parsed;
29
25 enum SharedCharTypes { 30 enum SharedCharTypes {
26 // Characters that do not require escaping in queries. Characters that do 31 // Characters that do not require escaping in queries. Characters that do
27 // not have this flag will be escaped; see url_canon_query.cc 32 // not have this flag will be escaped; see url_canon_query.cc
28 CHAR_QUERY = 1, 33 CHAR_QUERY = 1,
29 34
30 // Valid in the username/password field. 35 // Valid in the username/password field.
31 CHAR_USERINFO = 2, 36 CHAR_USERINFO = 2,
32 37
33 // Valid in a IPv4 address (digits plus dot and 'x' for hex). 38 // Valid in a IPv4 address (digits plus dot and 'x' for hex).
34 CHAR_IPV4 = 4, 39 CHAR_IPV4 = 4,
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 inline unsigned long long _strtoui64(const char* nptr, 430 inline unsigned long long _strtoui64(const char* nptr,
426 char** endptr, int base) { 431 char** endptr, int base) {
427 return strtoull(nptr, endptr, base); 432 return strtoull(nptr, endptr, base);
428 } 433 }
429 434
430 #endif // WIN32 435 #endif // WIN32
431 436
432 } // namespace url 437 } // namespace url
433 438
434 #endif // URL_URL_CANON_INTERNAL_H_ 439 #endif // URL_URL_CANON_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698