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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 namespace remoting { | 21 namespace remoting { |
22 namespace protocol { | 22 namespace protocol { |
23 | 23 |
24 class ChannelAuthenticator; | 24 class ChannelAuthenticator; |
25 | 25 |
26 class JingleChannelConnector : public base::NonThreadSafe { | 26 class JingleChannelConnector : public base::NonThreadSafe { |
27 public: | 27 public: |
28 JingleChannelConnector() { } | 28 JingleChannelConnector() { } |
29 virtual ~JingleChannelConnector() { } | 29 virtual ~JingleChannelConnector() { } |
30 | 30 |
31 // Starts the connection process for the channel. Takes ownership of | 31 // Starts the connection process for the channel. |
32 // |authenticator|. | 32 virtual void Connect(scoped_ptr<ChannelAuthenticator> authenticator, |
33 virtual void Connect(ChannelAuthenticator* authenticator, | |
34 cricket::TransportChannel* raw_channel) = 0; | 33 cricket::TransportChannel* raw_channel) = 0; |
35 | 34 |
36 protected: | 35 protected: |
37 DISALLOW_COPY_AND_ASSIGN(JingleChannelConnector); | 36 DISALLOW_COPY_AND_ASSIGN(JingleChannelConnector); |
38 }; | 37 }; |
39 | 38 |
40 } // namespace protocol | 39 } // namespace protocol |
41 } // namespace remoting | 40 } // namespace remoting |
42 | 41 |
43 #endif // REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_ | 42 #endif // REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_ |
OLD | NEW |