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

Side by Side Diff: net/base/ip_address.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 | « net/base/iovec.h ('k') | net/base/ip_address_number.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 NET_BASE_IP_ADDRESS_NET_H_ 5 #ifndef NET_BASE_IP_ADDRESS_NET_H_
6 #define NET_BASE_IP_ADDRESS_NET_H_ 6 #define NET_BASE_IP_ADDRESS_NET_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <vector> 11 #include <vector>
9 12
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
12 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
13 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
14 16
15 namespace net { 17 namespace net {
16 18
17 class NET_EXPORT IPAddress { 19 class NET_EXPORT IPAddress {
18 public: 20 public:
19 static const size_t kIPv4AddressSize; 21 static const size_t kIPv4AddressSize;
20 static const size_t kIPv6AddressSize; 22 static const size_t kIPv6AddressSize;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 64
63 private: 65 private:
64 // IPv4 addresses will have length kIPv4AddressSize, whereas IPv6 address 66 // IPv4 addresses will have length kIPv4AddressSize, whereas IPv6 address
65 // will have length kIPv6AddressSize. 67 // will have length kIPv6AddressSize.
66 std::vector<uint8_t> ip_address_; 68 std::vector<uint8_t> ip_address_;
67 }; 69 };
68 70
69 } // namespace net 71 } // namespace net
70 72
71 #endif // NET_BASE_IP_ADDRESS_NET_H_ 73 #endif // NET_BASE_IP_ADDRESS_NET_H_
OLDNEW
« no previous file with comments | « net/base/iovec.h ('k') | net/base/ip_address_number.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698