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

Unified Diff: chrome/common/local_discovery/service_discovery_client_impl.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_impl.h
diff --git a/chrome/common/local_discovery/service_discovery_client_impl.h b/chrome/common/local_discovery/service_discovery_client_impl.h
index 777c3f7e3d9c06764061951f8febee867b88a845..640425ca777e34e44ace0371a423f53e7e82b3a1 100644
--- a/chrome/common/local_discovery/service_discovery_client_impl.h
+++ b/chrome/common/local_discovery/service_discovery_client_impl.h
@@ -194,8 +194,7 @@ class ServiceResolverImpl
const net::RecordParsed* record) const;
// Convert an A record to an IP address.
- const net::IPAddressNumber& RecordToIPAddress(
- const net::RecordParsed* record) const;
+ const net::IPAddress RecordToIPAddress(const net::RecordParsed* record) const;
// Convert an MDns status to a service discovery status.
RequestStatus MDnsStatusToRequestStatus(
@@ -256,8 +255,8 @@ class LocalDomainResolverImpl : public LocalDomainResolver {
net::MDnsClient* mdns_client_;
- net::IPAddressNumber address_ipv4_;
- net::IPAddressNumber address_ipv6_;
+ net::IPAddress address_ipv4_;
+ net::IPAddress address_ipv6_;
base::CancelableCallback<void()> timeout_callback_;

Powered by Google App Engine
This is Rietveld 408576698