| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |