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

Unified Diff: remoting/protocol/jingle_datagram_connector.h

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_channel_connector.h ('k') | remoting/protocol/jingle_datagram_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_datagram_connector.h
diff --git a/remoting/protocol/jingle_datagram_connector.h b/remoting/protocol/jingle_datagram_connector.h
index 621bbee1c0ba9e918e6bce1d2d36deb129474431..930ec0f476eecf1cfb2cf463b9b825296c27af94 100644
--- a/remoting/protocol/jingle_datagram_connector.h
+++ b/remoting/protocol/jingle_datagram_connector.h
@@ -23,13 +23,11 @@ class JingleDatagramConnector : public JingleChannelConnector {
const Session::DatagramChannelCallback& callback);
virtual ~JingleDatagramConnector();
- // Starts connection process for the channel. |local_private_key| is
- // owned by the caller, and must exist until this object is
- // destroyed.
- virtual void Connect(bool initiator,
- const std::string& local_cert,
- const std::string& remote_cert,
- crypto::RSAPrivateKey* local_private_key,
+ // JingleChannelConnector implementation.
+ // TODO(sergeyu): In the current implementation ChannelAuthenticator
+ // cannot be used for datagram channels, so needs to be either
+ // extended or replaced with something else here.
+ virtual void Connect(ChannelAuthenticator* authenticator,
cricket::TransportChannel* raw_channel) OVERRIDE;
private:
@@ -37,6 +35,8 @@ class JingleDatagramConnector : public JingleChannelConnector {
std::string name_;
Session::DatagramChannelCallback callback_;
+ scoped_ptr<ChannelAuthenticator> authenticator_;
+
DISALLOW_COPY_AND_ASSIGN(JingleDatagramConnector);
};
« no previous file with comments | « remoting/protocol/jingle_channel_connector.h ('k') | remoting/protocol/jingle_datagram_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698