diff options
author | tfarina <tfarina@chromium.org> | 2015-10-12 17:29:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-13 00:30:52 +0000 |
commit | 73144d18b26e5914ea729a139da125995849f5eb (patch) | |
tree | 1b910e0112659e00e3abd7eac2aa44c7c99521b0 /net | |
parent | bb9cbc7f87efb8b4c756c79b29a4356023210c71 (diff) | |
download | chromium_src-73144d18b26e5914ea729a139da125995849f5eb.zip chromium_src-73144d18b26e5914ea729a139da125995849f5eb.tar.gz chromium_src-73144d18b26e5914ea729a139da125995849f5eb.tar.bz2 |
net: Move IPAddressAttributes enum out of net_util.h.
This patch moves IPAddressAttributes enum into network_interfaces.h (since it
is only used for the ip attributes from interfaces), to help breaking up
net_util.h further.
BUG=488531
R=eroman@chromium.org
TBR=gene@chromium.org,armansito@chromium.org,zea@chromium.org,mathp@chromium.org,reillyg@chromium.org,pauljensen@chromium.org
Review URL: https://codereview.chromium.org/1399533004
Cr-Commit-Position: refs/heads/master@{#353640}
Diffstat (limited to 'net')
-rw-r--r-- | net/base/address_tracker_linux.h | 2 | ||||
-rw-r--r-- | net/base/net_util.h | 18 | ||||
-rw-r--r-- | net/base/network_interfaces.h | 18 | ||||
-rw-r--r-- | net/dns/mdns_client.cc | 1 | ||||
-rw-r--r-- | net/http/http_server_properties.h | 2 | ||||
-rw-r--r-- | net/quic/crypto/proof_source.h | 2 | ||||
-rw-r--r-- | net/quic/crypto/proof_source_chromium_openssl.cc | 1 | ||||
-rw-r--r-- | net/quic/crypto/quic_crypto_server_config.h | 2 | ||||
-rw-r--r-- | net/quic/quic_unacked_packet_map_test.cc | 1 | ||||
-rw-r--r-- | net/tools/quic/quic_server.cc | 1 | ||||
-rw-r--r-- | net/udp/udp_server_socket.h | 2 |
11 files changed, 27 insertions, 23 deletions
diff --git a/net/base/address_tracker_linux.h b/net/base/address_tracker_linux.h index 1721799..16eaad9 100644 --- a/net/base/address_tracker_linux.h +++ b/net/base/address_tracker_linux.h @@ -21,7 +21,7 @@ #include "base/synchronization/condition_variable.h" #include "base/synchronization/lock.h" #include "base/threading/thread_checker.h" -#include "net/base/net_util.h" +#include "net/base/ip_address_number.h" #include "net/base/network_change_notifier.h" namespace net { diff --git a/net/base/net_util.h b/net/base/net_util.h index c430019..8691f4b 100644 --- a/net/base/net_util.h +++ b/net/base/net_util.h @@ -213,24 +213,6 @@ NET_EXPORT_PRIVATE bool IsLocalhostTLD(base::StringPiece host); // for histograms and shouldn't be used to affect behavior. NET_EXPORT_PRIVATE bool HasGoogleHost(const GURL& url); -// A subset of IP address attributes which are actionable by the -// application layer. Currently unimplemented for all hosts; -// IP_ADDRESS_ATTRIBUTE_NONE is always returned. -enum IPAddressAttributes { - IP_ADDRESS_ATTRIBUTE_NONE = 0, - - // A temporary address is dynamic by nature and will not contain MAC - // address. Presence of MAC address in IPv6 addresses can be used to - // track an endpoint and cause privacy concern. Please refer to - // RFC4941. - IP_ADDRESS_ATTRIBUTE_TEMPORARY = 1 << 0, - - // A temporary address could become deprecated once the preferred - // lifetime is reached. It is still valid but shouldn't be used to - // create new connections. - IP_ADDRESS_ATTRIBUTE_DEPRECATED = 1 << 1, -}; - } // namespace net #endif // NET_BASE_NET_UTIL_H_ diff --git a/net/base/network_interfaces.h b/net/base/network_interfaces.h index 73ad09a..6b21f51 100644 --- a/net/base/network_interfaces.h +++ b/net/base/network_interfaces.h @@ -40,6 +40,24 @@ struct Parsed; namespace net { +// A subset of IP address attributes which are actionable by the +// application layer. Currently unimplemented for all hosts; +// IP_ADDRESS_ATTRIBUTE_NONE is always returned. +enum IPAddressAttributes { + IP_ADDRESS_ATTRIBUTE_NONE = 0, + + // A temporary address is dynamic by nature and will not contain MAC + // address. Presence of MAC address in IPv6 addresses can be used to + // track an endpoint and cause privacy concern. Please refer to + // RFC4941. + IP_ADDRESS_ATTRIBUTE_TEMPORARY = 1 << 0, + + // A temporary address could become deprecated once the preferred + // lifetime is reached. It is still valid but shouldn't be used to + // create new connections. + IP_ADDRESS_ATTRIBUTE_DEPRECATED = 1 << 1, +}; + // struct that is used by GetNetworkList() to represent a network // interface. struct NET_EXPORT NetworkInterface { diff --git a/net/dns/mdns_client.cc b/net/dns/mdns_client.cc index f7bb48e..4d52d73 100644 --- a/net/dns/mdns_client.cc +++ b/net/dns/mdns_client.cc @@ -5,6 +5,7 @@ #include "net/dns/mdns_client.h" #include "net/base/net_errors.h" +#include "net/base/net_util.h" #include "net/base/network_interfaces.h" #include "net/dns/dns_protocol.h" #include "net/dns/mdns_client_impl.h" diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h index 95f4855..1df4759 100644 --- a/net/http/http_server_properties.h +++ b/net/http/http_server_properties.h @@ -14,8 +14,8 @@ #include "base/memory/weak_ptr.h" #include "base/time/time.h" #include "net/base/host_port_pair.h" +#include "net/base/ip_address_number.h" #include "net/base/net_export.h" -#include "net/base/net_util.h" #include "net/quic/quic_bandwidth.h" #include "net/quic/quic_server_id.h" #include "net/socket/next_proto.h" diff --git a/net/quic/crypto/proof_source.h b/net/quic/crypto/proof_source.h index f6eac21..744a8ed 100644 --- a/net/quic/crypto/proof_source.h +++ b/net/quic/crypto/proof_source.h @@ -8,8 +8,8 @@ #include <string> #include <vector> +#include "net/base/ip_address_number.h" #include "net/base/net_export.h" -#include "net/base/net_util.h" namespace net { diff --git a/net/quic/crypto/proof_source_chromium_openssl.cc b/net/quic/crypto/proof_source_chromium_openssl.cc index e122687..c89f2d9 100644 --- a/net/quic/crypto/proof_source_chromium_openssl.cc +++ b/net/quic/crypto/proof_source_chromium_openssl.cc @@ -8,6 +8,7 @@ #include <openssl/evp.h> #include <openssl/rsa.h> +#include "base/stl_util.h" #include "base/strings/string_number_conversions.h" #include "crypto/openssl_util.h" #include "net/quic/crypto/crypto_protocol.h" diff --git a/net/quic/crypto/quic_crypto_server_config.h b/net/quic/crypto/quic_crypto_server_config.h index 2ab58a2..4a5c83f 100644 --- a/net/quic/crypto/quic_crypto_server_config.h +++ b/net/quic/crypto/quic_crypto_server_config.h @@ -13,9 +13,9 @@ #include "base/memory/scoped_ptr.h" #include "base/strings/string_piece.h" #include "base/synchronization/lock.h" +#include "net/base/ip_address_number.h" #include "net/base/ip_endpoint.h" #include "net/base/net_export.h" -#include "net/base/net_util.h" #include "net/quic/crypto/crypto_handshake.h" #include "net/quic/crypto/crypto_handshake_message.h" #include "net/quic/crypto/crypto_protocol.h" diff --git a/net/quic/quic_unacked_packet_map_test.cc b/net/quic/quic_unacked_packet_map_test.cc index bad705e..1f61935 100644 --- a/net/quic/quic_unacked_packet_map_test.cc +++ b/net/quic/quic_unacked_packet_map_test.cc @@ -4,6 +4,7 @@ #include "net/quic/quic_unacked_packet_map.h" +#include "base/stl_util.h" #include "net/quic/quic_ack_notifier_manager.h" #include "net/quic/quic_flags.h" #include "net/quic/quic_utils.h" diff --git a/net/tools/quic/quic_server.cc b/net/tools/quic/quic_server.cc index 5d551e6..392963d 100644 --- a/net/tools/quic/quic_server.cc +++ b/net/tools/quic/quic_server.cc @@ -12,6 +12,7 @@ #include <sys/socket.h> #include "net/base/ip_endpoint.h" +#include "net/base/net_util.h" #include "net/quic/crypto/crypto_handshake.h" #include "net/quic/crypto/quic_random.h" #include "net/quic/quic_clock.h" diff --git a/net/udp/udp_server_socket.h b/net/udp/udp_server_socket.h index dabb8f0..b2e338b 100644 --- a/net/udp/udp_server_socket.h +++ b/net/udp/udp_server_socket.h @@ -6,7 +6,7 @@ #define NET_SOCKET_UDP_SERVER_SOCKET_H_ #include "net/base/completion_callback.h" -#include "net/base/net_util.h" +#include "net/base/ip_address_number.h" #include "net/udp/datagram_server_socket.h" #include "net/udp/udp_socket.h" |