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

Side by Side Diff: url/url_canon_ip.cc

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added IWYU-pragma-keep in a few places. 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 #include "url/url_canon_ip.h" 5 #include "url/url_canon_ip.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "url/third_party/mozilla/url_parse.h"
12 #include "url/url_canon_internal.h" 13 #include "url/url_canon_internal.h"
13 14
14 namespace url { 15 namespace url {
15 16
16 namespace { 17 namespace {
17 18
18 // Converts one of the character types that represent a numerical base to the 19 // Converts one of the character types that represent a numerical base to the
19 // corresponding base. 20 // corresponding base.
20 int BaseForType(SharedCharTypes type) { 21 int BaseForType(SharedCharTypes type) {
21 switch (type) { 22 switch (type) {
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 return DoIPv6AddressToNumber<char, unsigned char>(spec, host, address); 703 return DoIPv6AddressToNumber<char, unsigned char>(spec, host, address);
703 } 704 }
704 705
705 bool IPv6AddressToNumber(const base::char16* spec, 706 bool IPv6AddressToNumber(const base::char16* spec,
706 const Component& host, 707 const Component& host,
707 unsigned char address[16]) { 708 unsigned char address[16]) {
708 return DoIPv6AddressToNumber<base::char16, base::char16>(spec, host, address); 709 return DoIPv6AddressToNumber<base::char16, base::char16>(spec, host, address);
709 } 710 }
710 711
711 } // namespace url 712 } // namespace url
OLDNEW
« url/url_canon_icu.cc ('K') | « url/url_canon_ip.h ('k') | url/url_canon_mailtourl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698