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

Unified Diff: chrome/common/local_discovery/service_discovery_client.h

Issue 1534583002: Migrate Local Discovery from net::IPAddressNumber to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/local_discovery/service_discovery_client.h
diff --git a/chrome/common/local_discovery/service_discovery_client.h b/chrome/common/local_discovery/service_discovery_client.h
index d5bb9c587dd738f93a2c01f3b8e406c8a3bbb2f0..93f5b16876586c62a2d7f7ceb680efdd864bf916 100644
--- a/chrome/common/local_discovery/service_discovery_client.h
+++ b/chrome/common/local_discovery/service_discovery_client.h
@@ -13,7 +13,7 @@
#include "base/time/time.h"
#include "net/base/address_family.h"
#include "net/base/host_port_pair.h"
-#include "net/base/ip_address_number.h"
+#include "net/base/ip_address.h"
namespace net {
class MDnsClient;
@@ -38,7 +38,7 @@ struct ServiceDescription {
// The metadata (from TXT record) of the service.
std::vector<std::string> metadata;
// IP address of the service, if available from cache. May be empty.
- net::IPAddressNumber ip_address;
+ net::IPAddress ip_address;
// Last time the service was seen.
base::Time last_seen;
};
@@ -100,8 +100,8 @@ class ServiceResolver {
class LocalDomainResolver {
public:
typedef base::Callback<void(bool /*success*/,
- const net::IPAddressNumber& /*address_ipv4*/,
- const net::IPAddressNumber& /*address_ipv6*/)>
+ const net::IPAddress& /*address_ipv4*/,
+ const net::IPAddress& /*address_ipv6*/)>
IPAddressCallback;
virtual ~LocalDomainResolver() {}

Powered by Google App Engine
This is Rietveld 408576698