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_PEPPER_STREAM_CHANNEL_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ |
6 #define REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 PepperStreamChannel(PepperSession* session, | 32 PepperStreamChannel(PepperSession* session, |
33 const std::string& name, | 33 const std::string& name, |
34 const Session::StreamChannelCallback& callback); | 34 const Session::StreamChannelCallback& callback); |
35 virtual ~PepperStreamChannel(); | 35 virtual ~PepperStreamChannel(); |
36 | 36 |
37 // PepperChannel implementation. | 37 // PepperChannel implementation. |
38 virtual void Connect(pp::Instance* pp_instance, | 38 virtual void Connect(pp::Instance* pp_instance, |
39 const TransportConfig& transport_config, | 39 const TransportConfig& transport_config, |
40 const std::string& remote_cert) OVERRIDE; | 40 const std::string& remote_cert) OVERRIDE; |
41 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) OVERRIDE; | 41 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) OVERRIDE; |
42 virtual const std::string& name() OVERRIDE; | 42 virtual const std::string& name() const OVERRIDE; |
| 43 virtual bool is_connected() const OVERRIDE; |
43 | 44 |
44 // PepperTransportSocketAdapter implementation. | 45 // PepperTransportSocketAdapter implementation. |
45 virtual void OnChannelDeleted() OVERRIDE; | 46 virtual void OnChannelDeleted() OVERRIDE; |
46 virtual void OnChannelNewLocalCandidate( | 47 virtual void OnChannelNewLocalCandidate( |
47 const std::string& candidate) OVERRIDE; | 48 const std::string& candidate) OVERRIDE; |
48 | 49 |
49 private: | 50 private: |
50 void OnP2PConnect(int result); | 51 void OnP2PConnect(int result); |
51 | 52 |
52 bool EstablishSSLConnection(); | 53 bool EstablishSSLConnection(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 net::OldCompletionCallbackImpl<PepperStreamChannel> p2p_connect_callback_; | 85 net::OldCompletionCallbackImpl<PepperStreamChannel> p2p_connect_callback_; |
85 net::OldCompletionCallbackImpl<PepperStreamChannel> ssl_connect_callback_; | 86 net::OldCompletionCallbackImpl<PepperStreamChannel> ssl_connect_callback_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel); | 88 DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace protocol | 91 } // namespace protocol |
91 } // namespace remoting | 92 } // namespace remoting |
92 | 93 |
93 #endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ | 94 #endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ |
OLD | NEW |