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

Side by Side Diff: url/url_canon_ip.h

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 #ifndef URL_URL_CANON_IP_H_ 5 #ifndef URL_URL_CANON_IP_H_
6 #define URL_URL_CANON_IP_H_ 6 #define URL_URL_CANON_IP_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "url/third_party/mozilla/url_parse.h" 9 #include "url/third_party/mozilla/url_parse.h"
10 #include "url/url_canon.h" 10 #include "url/url_canon.h"
11 #include "url/url_export.h" 11 #include "url/url_export.h"
12 12
13 namespace url { 13 namespace url {
14 14
15 struct Component;
16
15 // Writes the given IPv4 address to |output|. 17 // Writes the given IPv4 address to |output|.
16 URL_EXPORT void AppendIPv4Address(const unsigned char address[4], 18 URL_EXPORT void AppendIPv4Address(const unsigned char address[4],
17 CanonOutput* output); 19 CanonOutput* output);
18 20
19 // Writes the given IPv6 address to |output|. 21 // Writes the given IPv6 address to |output|.
20 URL_EXPORT void AppendIPv6Address(const unsigned char address[16], 22 URL_EXPORT void AppendIPv6Address(const unsigned char address[16],
21 CanonOutput* output); 23 CanonOutput* output);
22 24
23 // Searches the host name for the portions of the IPv4 address. On success, 25 // Searches the host name for the portions of the IPv4 address. On success,
24 // each component will be placed into |components| and it will return true. 26 // each component will be placed into |components| and it will return true.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 URL_EXPORT bool IPv6AddressToNumber(const char* spec, 75 URL_EXPORT bool IPv6AddressToNumber(const char* spec,
74 const Component& host, 76 const Component& host,
75 unsigned char address[16]); 77 unsigned char address[16]);
76 URL_EXPORT bool IPv6AddressToNumber(const base::char16* spec, 78 URL_EXPORT bool IPv6AddressToNumber(const base::char16* spec,
77 const Component& host, 79 const Component& host,
78 unsigned char address[16]); 80 unsigned char address[16]);
79 81
80 } // namespace url 82 } // namespace url
81 83
82 #endif // URL_URL_CANON_IP_H_ 84 #endif // URL_URL_CANON_IP_H_
OLDNEW
« url/url_canon_icu.cc ('K') | « url/url_canon_internal.cc ('k') | url/url_canon_ip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698