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

Unified Diff: blimp/net/tcp_client_transport.cc

Issue 2439403003: Refactor BlimpConnection to TCPConnection (Closed)
Patch Set: Added missing Engine Transport 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: blimp/net/tcp_client_transport.cc
diff --git a/blimp/net/tcp_client_transport.cc b/blimp/net/tcp_client_transport.cc
index 75145eb90b70e8d22763be60e3d6127da72e6906..75e7337653a946437a8f0b0ad404fcda678bfb74 100644
--- a/blimp/net/tcp_client_transport.cc
+++ b/blimp/net/tcp_client_transport.cc
@@ -12,7 +12,7 @@
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "blimp/net/message_port.h"
-#include "blimp/net/stream_socket_connection.h"
+#include "blimp/net/tcp_connection.h"
#include "net/log/net_log_source.h"
#include "net/socket/client_socket_factory.h"
#include "net/socket/stream_socket.h"
@@ -58,6 +58,10 @@ std::unique_ptr<MessagePort> TCPClientTransport::TakeMessagePort() {
return MessagePort::CreateForStreamSocketWithCompression(std::move(socket_));
}
+std::unique_ptr<BlimpConnection> TCPClientTransport::MakeConnection() {
Wez 2016/11/09 22:47:17 nit: Please reflect the header ordering in the .cc
+ return base::MakeUnique<TCPConnection>(TakeMessagePort());
+}
+
const char* TCPClientTransport::GetName() const {
return "TCP";
}

Powered by Google App Engine
This is Rietveld 408576698