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

Unified Diff: blimp/client/session/blimp_client_session.cc

Issue 1757153002: Revert of Blimp: add support for SSL connections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « blimp/client/session/assignment_source_unittest.cc ('k') | blimp/client/session/test_selfsigned_cert.pem » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/session/blimp_client_session.cc
diff --git a/blimp/client/session/blimp_client_session.cc b/blimp/client/session/blimp_client_session.cc
index 7846d5946c84bc63c4f03896e43f72956fbb3bc9..29c0b32b28703cecc197fbd6a7aa36226a1c4875 100644
--- a/blimp/client/session/blimp_client_session.cc
+++ b/blimp/client/session/blimp_client_session.cc
@@ -22,7 +22,6 @@
#include "blimp/net/client_connection_manager.h"
#include "blimp/net/common.h"
#include "blimp/net/null_blimp_message_processor.h"
-#include "blimp/net/ssl_client_transport.h"
#include "blimp/net/tcp_client_transport.h"
#include "net/base/address_list.h"
#include "net/base/ip_address.h"
@@ -67,6 +66,7 @@
// they are used from the UI thread.
std::vector<scoped_ptr<BlimpMessageThreadPipe>> outgoing_pipes_;
std::vector<scoped_ptr<BlimpMessageProcessor>> outgoing_message_processors_;
+
DISALLOW_COPY_AND_ASSIGN(ClientNetworkComponents);
};
@@ -81,20 +81,8 @@
DCHECK(connection_manager_);
connection_manager_->set_client_token(assignment.client_token);
- switch (assignment.transport_protocol) {
- case Assignment::SSL:
- DCHECK(assignment.cert);
- connection_manager_->AddTransport(make_scoped_ptr(new SSLClientTransport(
- assignment.engine_endpoint, std::move(assignment.cert), nullptr)));
- break;
- case Assignment::TCP:
- connection_manager_->AddTransport(make_scoped_ptr(
- new TCPClientTransport(assignment.engine_endpoint, nullptr)));
- break;
- case Assignment::UNKNOWN:
- DLOG(FATAL) << "Uknown transport type.";
- break;
- }
+ connection_manager_->AddTransport(make_scoped_ptr(new TCPClientTransport(
+ net::AddressList(assignment.ip_endpoint), nullptr)));
connection_manager_->Connect();
}
@@ -130,8 +118,8 @@
options.message_loop_type = base::MessageLoop::TYPE_IO;
io_thread_.StartWithOptions(options);
- assignment_source_.reset(
- new AssignmentSource(io_thread_.task_runner(), io_thread_.task_runner()));
+ assignment_source_.reset(new AssignmentSource(
+ base::ThreadTaskRunnerHandle::Get(), io_thread_.task_runner()));
// Register features' message senders and receivers.
tab_control_feature_->set_outgoing_message_processor(
« no previous file with comments | « blimp/client/session/assignment_source_unittest.cc ('k') | blimp/client/session/test_selfsigned_cert.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698