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

Unified Diff: net/dns/dns_session.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 months 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: net/dns/dns_session.cc
diff --git a/net/dns/dns_session.cc b/net/dns/dns_session.cc
index 16fc5d1b2e213e45d74383f93798a985a1e4bf3e..b022907c4db92ef88f0da7468e63dbf6e4569a88 100644
--- a/net/dns/dns_session.cc
+++ b/net/dns/dns_session.cc
@@ -26,6 +26,8 @@
#include "net/dns/dns_socket_pool.h"
#include "net/dns/dns_util.h"
#include "net/log/net_log_event_type.h"
+#include "net/log/net_log_source.h"
+#include "net/log/net_log_with_source.h"
#include "net/socket/stream_socket.h"
#include "net/udp/datagram_client_socket.h"
@@ -271,7 +273,7 @@ base::TimeDelta DnsSession::NextTimeout(unsigned server_index, int attempt) {
// Allocate a socket, already connected to the server address.
std::unique_ptr<DnsSession::SocketLease> DnsSession::AllocateSocket(
unsigned server_index,
- const NetLog::Source& source) {
+ const NetLogSource& source) {
std::unique_ptr<DatagramClientSocket> socket;
socket = socket_pool_->AllocateSocket(server_index);
@@ -287,7 +289,7 @@ std::unique_ptr<DnsSession::SocketLease> DnsSession::AllocateSocket(
std::unique_ptr<StreamSocket> DnsSession::CreateTCPSocket(
unsigned server_index,
- const NetLog::Source& source) {
+ const NetLogSource& source) {
return socket_pool_->CreateTCPSocket(server_index, source);
}

Powered by Google App Engine
This is Rietveld 408576698