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

Unified Diff: blimp/net/client_connection_manager.cc

Issue 2439403003: Refactor BlimpConnection to TCPConnection (Closed)
Patch Set: Sync merge 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/client_connection_manager.cc
diff --git a/blimp/net/client_connection_manager.cc b/blimp/net/client_connection_manager.cc
index 4218b2d512796e53e5b15e2a8b0a9bad41f075e8..df2d3b52d4a18a9095385488a9e1bfadfccfda11 100644
--- a/blimp/net/client_connection_manager.cc
+++ b/blimp/net/client_connection_manager.cc
@@ -57,9 +57,9 @@ void ClientConnectionManager::Connect(int transport_index) {
void ClientConnectionManager::OnConnectResult(int transport_index, int result) {
DCHECK_NE(result, net::ERR_IO_PENDING);
const auto& transport = transports_[transport_index];
+ DVLOG(3) << "OnConnectResult; result = " << result;
Garrett Casto 2016/10/25 18:33:50 Nit: Everything else in this file is DVLOG(1). If
perumaal 2016/10/25 23:02:39 Cool, good idea. thanks
if (result == net::OK) {
- std::unique_ptr<BlimpConnection> connection =
- base::MakeUnique<BlimpConnection>(transport->TakeMessagePort());
+ std::unique_ptr<BlimpConnection> connection = transport->MakeConnection();
connection->AddConnectionErrorObserver(this);
SendAuthenticationMessage(std::move(connection));
} else {
@@ -80,8 +80,7 @@ void ClientConnectionManager::SendAuthenticationMessage(
}
void ClientConnectionManager::OnAuthenticationMessageSent(
- std::unique_ptr<BlimpConnection> connection,
- int result) {
+ std::unique_ptr<BlimpConnection> connection, int result) {
DVLOG(1) << "AuthenticationMessageSent, result=" << result;
if (result != net::OK) {
// If a write error occurred, just throw away |connection|.

Powered by Google App Engine
This is Rietveld 408576698