Index: remoting/protocol/pepper_channel.h |
diff --git a/remoting/protocol/pepper_channel.h b/remoting/protocol/pepper_channel.h |
index cb77b17d5cfac9a7c30202c3e53a133a81a55b3d..de6b93b68ce30490cc5bfec1618f1d904e204bd7 100644 |
--- a/remoting/protocol/pepper_channel.h |
+++ b/remoting/protocol/pepper_channel.h |
@@ -21,6 +21,7 @@ class Candidate; |
namespace remoting { |
namespace protocol { |
+class ChannelAuthenticator; |
struct TransportConfig; |
// Interface for stream and datagram channels used by PepperSession. |
@@ -29,10 +30,12 @@ class PepperChannel : public base::NonThreadSafe { |
PepperChannel() { } |
virtual ~PepperChannel() { } |
- // Connect the channel using specified |config|. |
+ // Connect the channel using specified |config|. The specified |
+ // |authenticator| is used to authenticate the channel. Takes |
+ // ownership of |authenticator|. |
virtual void Connect(pp::Instance* pp_instance, |
const TransportConfig& config, |
- const std::string& remote_cert) = 0; |
+ ChannelAuthenticator* authenticator) = 0; |
// Adds |candidate| received from the peer. |
virtual void AddRemoveCandidate(const cricket::Candidate& candidate) = 0; |
@@ -40,7 +43,7 @@ class PepperChannel : public base::NonThreadSafe { |
// Name of the channel. |
virtual const std::string& name() const = 0; |
- // returns true if the channel is already connected |
+ // Returns true if the channel is already connected. |
virtual bool is_connected() const = 0; |
protected: |