Use IPEndPoint instead of HostPortPair
https://chromium-review.googlesource.com/c/chromium/src/+/1473094
This commit is contained in:
parent
3f4f774838
commit
bfe876afcd
1 changed files with 5 additions and 6 deletions
|
@ -149,9 +149,8 @@ void ToDictionary(base::DictionaryValue* details, const GURL& location) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToDictionary(base::DictionaryValue* details,
|
void ToDictionary(base::DictionaryValue* details,
|
||||||
const net::HostPortPair& host_port) {
|
const net::IPEndPoint& remote_endpoint) {
|
||||||
if (host_port.host().empty())
|
details->SetString("ip", remote_endpoint.ToStringWithoutPort());
|
||||||
details->SetString("ip", host_port.host());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToDictionary(base::DictionaryValue* details, bool from_cache) {
|
void ToDictionary(base::DictionaryValue* details, bool from_cache) {
|
||||||
|
@ -328,9 +327,9 @@ void AtomNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
|
||||||
if (!base::ContainsKey(simple_listeners_, kOnBeforeRedirect))
|
if (!base::ContainsKey(simple_listeners_, kOnBeforeRedirect))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
HandleSimpleEvent(kOnBeforeRedirect, request, new_location,
|
HandleSimpleEvent(
|
||||||
request->response_headers(), request->GetSocketAddress(),
|
kOnBeforeRedirect, request, new_location, request->response_headers(),
|
||||||
request->was_cached());
|
request->GetResponseRemoteEndpoint(), request->was_cached());
|
||||||
}
|
}
|
||||||
|
|
||||||
void AtomNetworkDelegate::OnResponseStarted(net::URLRequest* request,
|
void AtomNetworkDelegate::OnResponseStarted(net::URLRequest* request,
|
||||||
|
|
Loading…
Reference in a new issue