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

Unified Diff: net/dns/dns_session.cc

Issue 2315613002: Extracted NetLog class's inner enum types into their own enum classes and (Closed)
Patch Set: Ran "git cl format" on code. Much formatting ensued. Created 4 years, 3 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
« no previous file with comments | « net/disk_cache/simple/simple_entry_impl.cc ('k') | net/dns/dns_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_session.cc
diff --git a/net/dns/dns_session.cc b/net/dns/dns_session.cc
index 39011f47422f9657f44b3aa6717a9fdfe332244f..98acea23c4793fb6825f01ea7d8059f8edc1724c 100644
--- a/net/dns/dns_session.cc
+++ b/net/dns/dns_session.cc
@@ -25,6 +25,7 @@
#include "net/dns/dns_config_service.h"
#include "net/dns/dns_socket_pool.h"
#include "net/dns/dns_util.h"
+#include "net/log/net_log_event_type.h"
#include "net/socket/stream_socket.h"
#include "net/udp/datagram_client_socket.h"
@@ -277,7 +278,7 @@ std::unique_ptr<DnsSession::SocketLease> DnsSession::AllocateSocket(
if (!socket.get())
return std::unique_ptr<SocketLease>();
- socket->NetLog().BeginEvent(NetLog::TYPE_SOCKET_IN_USE,
+ socket->NetLog().BeginEvent(NetLogEventType::SOCKET_IN_USE,
source.ToEventParametersCallback());
SocketLease* lease = new SocketLease(this, server_index, std::move(socket));
@@ -301,7 +302,7 @@ void DnsSession::FreeSocket(unsigned server_index,
std::unique_ptr<DatagramClientSocket> socket) {
DCHECK(socket.get());
- socket->NetLog().EndEvent(NetLog::TYPE_SOCKET_IN_USE);
+ socket->NetLog().EndEvent(NetLogEventType::SOCKET_IN_USE);
socket_pool_->FreeSocket(server_index, std::move(socket));
}
« no previous file with comments | « net/disk_cache/simple/simple_entry_impl.cc ('k') | net/dns/dns_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698