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

Unified Diff: net/http/http_proxy_client_socket_wrapper.cc

Issue 2315613002: Extracted NetLog class's inner enum types into their own enum classes and (Closed)
Patch Set: 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
Index: net/http/http_proxy_client_socket_wrapper.cc
diff --git a/net/http/http_proxy_client_socket_wrapper.cc b/net/http/http_proxy_client_socket_wrapper.cc
index 6be76b5bb7b2205f693652646d886a9d054e8839..80f09383b743a2d28a84e21e6465f034f89bd9eb 100644
--- a/net/http/http_proxy_client_socket_wrapper.cc
+++ b/net/http/http_proxy_client_socket_wrapper.cc
@@ -15,6 +15,8 @@
#include "net/base/proxy_delegate.h"
#include "net/http/http_proxy_client_socket.h"
#include "net/http/http_response_info.h"
+#include "net/log/net_log_event_type.h"
+#include "net/log/net_log_source_type.h"
#include "net/socket/client_socket_handle.h"
#include "net/spdy/spdy_proxy_client_socket.h"
#include "net/spdy/spdy_session.h"
@@ -68,8 +70,8 @@ HttpProxyClientSocketWrapper::HttpProxyClientSocketWrapper(
http_auth_handler_factory)
: nullptr),
net_log_(BoundNetLog::Make(net_log.net_log(),
- NetLog::SOURCE_PROXY_CLIENT_SOCKET_WRAPPER)) {
- net_log_.BeginEvent(NetLog::TYPE_SOCKET_ALIVE,
+ NetLogSourceType::PROXY_CLIENT_SOCKET_WRAPPER)) {
+ net_log_.BeginEvent(NetLogEventType::SOCKET_ALIVE,
net_log.source().ToEventParametersCallback());
DCHECK(transport_params || ssl_params);
DCHECK(!transport_params || !ssl_params);
@@ -79,7 +81,7 @@ HttpProxyClientSocketWrapper::~HttpProxyClientSocketWrapper() {
// Make sure no sockets are returned to the lower level socket pools.
Disconnect();
- net_log_.EndEvent(NetLog::TYPE_SOCKET_ALIVE);
+ net_log_.EndEvent(NetLogEventType::SOCKET_ALIVE);
}
LoadState HttpProxyClientSocketWrapper::GetConnectLoadState() const {

Powered by Google App Engine
This is Rietveld 408576698