Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 connection process for the channel. Takes ownership of |
|
Wez
2011/11/22 22:29:48
nit: Starts _the_ connection process ...
Sergey Ulanov
2011/11/23 01:23:42
Done.
| |
| 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_ |
| OLD | NEW |