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

Side by Side Diff: remoting/protocol/jingle_channel_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/connection_to_host.cc ('k') | remoting/protocol/jingle_datagram_connector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_ 5 #ifndef REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_
6 #define REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_ 6 #define REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/threading/non_thread_safe.h" 11 #include "base/threading/non_thread_safe.h"
12 12
13 namespace cricket { 13 namespace cricket {
14 class TransportChannel; 14 class TransportChannel;
15 } // namespace cricket 15 } // namespace cricket
16 16
17 namespace crypto { 17 namespace crypto {
18 class RSAPrivateKey; 18 class RSAPrivateKey;
19 } // namespace crypto 19 } // namespace crypto
20 20
21 namespace remoting { 21 namespace remoting {
22 namespace protocol { 22 namespace protocol {
23 23
24 class ChannelAuthenticator;
25
24 class JingleChannelConnector : public base::NonThreadSafe { 26 class JingleChannelConnector : public base::NonThreadSafe {
25 public: 27 public:
26 JingleChannelConnector() { } 28 JingleChannelConnector() { }
27 virtual ~JingleChannelConnector() { } 29 virtual ~JingleChannelConnector() { }
28 30
29 virtual void Connect(bool initiator, 31 // Starts the connection process for the channel. Takes ownership of
30 const std::string& local_cert, 32 // |authenticator|.
31 const std::string& remote_cert, 33 virtual void Connect(ChannelAuthenticator* authenticator,
32 crypto::RSAPrivateKey* local_private_key,
33 cricket::TransportChannel* raw_channel) = 0; 34 cricket::TransportChannel* raw_channel) = 0;
34 35
35 protected: 36 protected:
36 DISALLOW_COPY_AND_ASSIGN(JingleChannelConnector); 37 DISALLOW_COPY_AND_ASSIGN(JingleChannelConnector);
37 }; 38 };
38 39
39 } // namespace protocol 40 } // namespace protocol
40 } // namespace remoting 41 } // namespace remoting
41 42
42 #endif // REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_ 43 #endif // REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/connection_to_host.cc ('k') | remoting/protocol/jingle_datagram_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698