| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ |
| 6 #define REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/threading/non_thread_safe.h" |
| 12 |
| 13 namespace pp { |
| 14 class Instance; |
| 15 } // namespace pp |
| 16 |
| 17 namespace cricket { |
| 18 class Candidate; |
| 19 } // namespace cricket |
| 20 |
| 21 namespace remoting { |
| 22 namespace protocol { |
| 23 |
| 24 struct TransportConfig; |
| 25 |
| 26 // Interface for stream and datagram channels used by PepperSession. |
| 27 class PepperChannel : public base::NonThreadSafe { |
| 28 public: |
| 29 PepperChannel() { } |
| 30 virtual ~PepperChannel() { } |
| 31 |
| 32 // Connect the channel using specified |config|. |
| 33 virtual void Connect(pp::Instance* pp_instance, |
| 34 const TransportConfig& config, |
| 35 const std::string& remote_cert) = 0; |
| 36 |
| 37 // Adds |candidate| received from the peer. |
| 38 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) = 0; |
| 39 |
| 40 // Name of the channel. |
| 41 virtual const std::string& name() = 0; |
| 42 |
| 43 protected: |
| 44 DISALLOW_COPY_AND_ASSIGN(PepperChannel); |
| 45 }; |
| 46 |
| 47 } // namespace protocol |
| 48 } // namespace remoting |
| 49 |
| 50 #endif // REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ |
| OLD | NEW |