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

Unified Diff: remoting/protocol/jingle_datagram_connector.cc

Issue 8604001: Move SSL layer initialization into ChannelAuthenticator implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simple->V1 Created 9 years, 1 month 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 | « remoting/protocol/jingle_datagram_connector.h ('k') | remoting/protocol/jingle_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_datagram_connector.cc
diff --git a/remoting/protocol/jingle_datagram_connector.cc b/remoting/protocol/jingle_datagram_connector.cc
index 4a90b3d1c8d10dbfbce2695a3cd737f5195399e3..4673efcee4d0cc1b08485e5eb5d3d21287210074 100644
--- a/remoting/protocol/jingle_datagram_connector.cc
+++ b/remoting/protocol/jingle_datagram_connector.cc
@@ -5,6 +5,7 @@
#include "remoting/protocol/jingle_datagram_connector.h"
#include "jingle/glue/channel_socket_adapter.h"
+#include "remoting/protocol/channel_authenticator.h"
#include "remoting/protocol/jingle_session.h"
namespace remoting {
@@ -23,13 +24,12 @@ JingleDatagramConnector::~JingleDatagramConnector() {
}
void JingleDatagramConnector::Connect(
- bool initiator,
- const std::string& local_cert,
- const std::string& remote_cert,
- crypto::RSAPrivateKey* local_private_key,
+ ChannelAuthenticator* authenticator,
cricket::TransportChannel* raw_channel) {
DCHECK(CalledOnValidThread());
+ authenticator_.reset(authenticator);
+
net::Socket* socket =
new jingle_glue::TransportChannelSocketAdapter(raw_channel);
« no previous file with comments | « remoting/protocol/jingle_datagram_connector.h ('k') | remoting/protocol/jingle_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698