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

Unified Diff: extensions/browser/api/socket/tcp_socket.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: extensions/browser/api/socket/tcp_socket.cc
diff --git a/extensions/browser/api/socket/tcp_socket.cc b/extensions/browser/api/socket/tcp_socket.cc
index 4fb5913fc1ec5f13425648d4f2d626f44f548d3c..a3fdb0484a05884771fbba770f3018b2cb350595 100644
--- a/extensions/browser/api/socket/tcp_socket.cc
+++ b/extensions/browser/api/socket/tcp_socket.cc
@@ -14,6 +14,7 @@
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/base/rand_callback.h"
+#include "net/log/net_log_source.h"
#include "net/socket/tcp_client_socket.h"
namespace extensions {
@@ -101,7 +102,7 @@ void TCPSocket::Connect(const net::AddressList& address,
int result = net::ERR_CONNECTION_FAILED;
if (!is_connected_) {
socket_.reset(
- new net::TCPClientSocket(address, NULL, NULL, net::NetLog::Source()));
+ new net::TCPClientSocket(address, NULL, NULL, net::NetLogSource()));
result = socket_->Connect(
base::Bind(&TCPSocket::OnConnectComplete, base::Unretained(this)));
}
@@ -202,7 +203,7 @@ int TCPSocket::Listen(const std::string& address,
socket_mode_ = SERVER;
if (!server_socket_.get()) {
- server_socket_.reset(new net::TCPServerSocket(NULL, net::NetLog::Source()));
+ server_socket_.reset(new net::TCPServerSocket(NULL, net::NetLogSource()));
}
int result = server_socket_->ListenWithAddressAndPort(address, port, backlog);

Powered by Google App Engine
This is Rietveld 408576698