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_PEPPER_CHANNEL_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ |
| 6 #define REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 | 31 |
| 32 // Connect the channel using specified |config|. | 32 // Connect the channel using specified |config|. |
| 33 virtual void Connect(pp::Instance* pp_instance, | 33 virtual void Connect(pp::Instance* pp_instance, |
| 34 const TransportConfig& config, | 34 const TransportConfig& config, |
| 35 const std::string& remote_cert) = 0; | 35 const std::string& remote_cert) = 0; |
| 36 | 36 |
| 37 // Adds |candidate| received from the peer. | 37 // Adds |candidate| received from the peer. |
| 38 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) = 0; | 38 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) = 0; |
| 39 | 39 |
| 40 // Name of the channel. | 40 // Name of the channel. |
| 41 virtual const std::string& name() = 0; | 41 virtual const std::string& name() const = 0; |
| 42 | |
| 43 // returns true if the channel is already connected | |
| 44 virtual bool connected() const = 0; | |
|
Wez
2011/11/15 22:29:13
nit: connected -> is_connected?
Sergey Ulanov
2011/11/16 00:01:33
Done.
| |
| 42 | 45 |
| 43 protected: | 46 protected: |
| 44 DISALLOW_COPY_AND_ASSIGN(PepperChannel); | 47 DISALLOW_COPY_AND_ASSIGN(PepperChannel); |
| 45 }; | 48 }; |
| 46 | 49 |
| 47 } // namespace protocol | 50 } // namespace protocol |
| 48 } // namespace remoting | 51 } // namespace remoting |
| 49 | 52 |
| 50 #endif // REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ | 53 #endif // REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ |
| OLD | NEW |