summaryrefslogtreecommitdiffstats
path: root/remoting/protocol
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-30 04:41:13 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-30 04:41:13 +0000
commit946cdb61e3aa5f6b7c1c8b4f143ca9099e50ccf9 (patch)
tree6dfc27b813ed9bf250eb09c383290c935dae12cc /remoting/protocol
parent30e7fbe76ed233d2840ba418f4755303a47d706f (diff)
downloadchromium_src-946cdb61e3aa5f6b7c1c8b4f143ca9099e50ccf9.zip
chromium_src-946cdb61e3aa5f6b7c1c8b4f143ca9099e50ccf9.tar.gz
chromium_src-946cdb61e3aa5f6b7c1c8b4f143ca9099e50ccf9.tar.bz2
Revert 267030 "Build remoting for PNaCl"
> Build remoting for PNaCl > > BUG=276739 > R=jamiewalch@chromium.org > > Review URL: https://codereview.chromium.org/234023003 TBR=sergeyu@chromium.org Review URL: https://codereview.chromium.org/254243002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol')
-rw-r--r--remoting/protocol/jingle_session_unittest.cc2
-rw-r--r--remoting/protocol/libjingle_transport_factory.cc2
-rw-r--r--remoting/protocol/ssl_hmac_channel_authenticator.cc22
3 files changed, 5 insertions, 21 deletions
diff --git a/remoting/protocol/jingle_session_unittest.cc b/remoting/protocol/jingle_session_unittest.cc
index 037cbcb..2f95100 100644
--- a/remoting/protocol/jingle_session_unittest.cc
+++ b/remoting/protocol/jingle_session_unittest.cc
@@ -9,7 +9,6 @@
#include "base/run_loop.h"
#include "base/test/test_timeouts.h"
#include "base/time/time.h"
-#include "jingle/glue/thread_wrapper.h"
#include "net/socket/socket.h"
#include "net/socket/stream_socket.h"
#include "net/url_request/url_request_context_getter.h"
@@ -95,7 +94,6 @@ class JingleSessionTest : public testing::Test {
public:
JingleSessionTest() {
message_loop_.reset(new base::MessageLoopForIO());
- jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop();
}
// Helper method that handles OnIncomingSession().
diff --git a/remoting/protocol/libjingle_transport_factory.cc b/remoting/protocol/libjingle_transport_factory.cc
index afea1d5..b37cbb4 100644
--- a/remoting/protocol/libjingle_transport_factory.cc
+++ b/remoting/protocol/libjingle_transport_factory.cc
@@ -10,6 +10,7 @@
#include "base/timer/timer.h"
#include "jingle/glue/channel_socket_adapter.h"
#include "jingle/glue/pseudotcp_adapter.h"
+#include "jingle/glue/thread_wrapper.h"
#include "jingle/glue/utils.h"
#include "net/base/net_errors.h"
#include "remoting/base/constants.h"
@@ -410,6 +411,7 @@ LibjingleTransportFactory::LibjingleTransportFactory(
: signal_strategy_(signal_strategy),
port_allocator_(port_allocator.Pass()),
network_settings_(network_settings) {
+ jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop();
}
LibjingleTransportFactory::~LibjingleTransportFactory() {
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.cc b/remoting/protocol/ssl_hmac_channel_authenticator.cc
index d85ad5f..7e45acd 100644
--- a/remoting/protocol/ssl_hmac_channel_authenticator.cc
+++ b/remoting/protocol/ssl_hmac_channel_authenticator.cc
@@ -15,7 +15,6 @@
#include "net/socket/client_socket_factory.h"
#include "net/socket/client_socket_handle.h"
#include "net/socket/ssl_client_socket.h"
-#include "net/socket/ssl_client_socket_openssl.h"
#include "net/socket/ssl_server_socket.h"
#include "net/ssl/ssl_config_service.h"
#include "remoting/base/rsa_key_pair.h"
@@ -64,12 +63,6 @@ void SslHmacChannelAuthenticator::SecureAndAuthenticate(
int result;
if (is_ssl_server()) {
-#if defined(OS_NACL)
- // Client plugin doesn't use server SSL sockets, and so SSLServerSocket
- // implementation is not compiled for NaCl as part of net_nacl.
- NOTREACHED();
- result = net::ERR_FAILED;
-#else
scoped_refptr<net::X509Certificate> cert =
net::X509Certificate::CreateFromBytes(
local_cert_.data(), local_cert_.length());
@@ -92,7 +85,6 @@ void SslHmacChannelAuthenticator::SecureAndAuthenticate(
result = raw_server_socket->Handshake(
base::Bind(&SslHmacChannelAuthenticator::OnConnected,
base::Unretained(this)));
-#endif
} else {
transport_security_state_.reset(new net::TransportSecurityState);
@@ -112,19 +104,11 @@ void SslHmacChannelAuthenticator::SecureAndAuthenticate(
net::HostPortPair host_and_port(kSslFakeHostName, 0);
net::SSLClientSocketContext context;
context.transport_security_state = transport_security_state_.get();
- scoped_ptr<net::ClientSocketHandle> socket_handle(
- new net::ClientSocketHandle);
- socket_handle->SetSocket(socket.Pass());
-
-#if defined(OS_NACL)
- // net_nacl doesn't include ClientSocketFactory.
- socket_.reset(new net::SSLClientSocketOpenSSL(
- socket_handle.Pass(), host_and_port, ssl_config, context));
-#else
+ scoped_ptr<net::ClientSocketHandle> connection(new net::ClientSocketHandle);
+ connection->SetSocket(socket.Pass());
socket_ =
net::ClientSocketFactory::GetDefaultFactory()->CreateSSLClientSocket(
- socket_handle.Pass(), host_and_port, ssl_config, context);
-#endif
+ connection.Pass(), host_and_port, ssl_config, context);
result = socket_->Connect(
base::Bind(&SslHmacChannelAuthenticator::OnConnected,