| 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 19 matching lines...) Expand all Loading... |
| 30 public PepperTransportSocketAdapter::Observer { | 30 public PepperTransportSocketAdapter::Observer { |
| 31 public: | 31 public: |
| 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 ChannelAuthenticator* authenticator) OVERRIDE; | 40 scoped_ptr<ChannelAuthenticator> authenticator) 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() const OVERRIDE; | 42 virtual const std::string& name() const OVERRIDE; |
| 43 virtual bool is_connected() const OVERRIDE; | 43 virtual bool is_connected() const OVERRIDE; |
| 44 | 44 |
| 45 // PepperTransportSocketAdapter implementation. | 45 // PepperTransportSocketAdapter implementation. |
| 46 virtual void OnChannelDeleted() OVERRIDE; | 46 virtual void OnChannelDeleted() OVERRIDE; |
| 47 virtual void OnChannelNewLocalCandidate( | 47 virtual void OnChannelNewLocalCandidate( |
| 48 const std::string& candidate) OVERRIDE; | 48 const std::string& candidate) OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 67 // Indicates that we've finished connecting. | 67 // Indicates that we've finished connecting. |
| 68 bool connected_; | 68 bool connected_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel); | 70 DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace protocol | 73 } // namespace protocol |
| 74 } // namespace remoting | 74 } // namespace remoting |
| 75 | 75 |
| 76 #endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ | 76 #endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ |
| OLD | NEW |