Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: remoting/protocol/pepper_channel.h

Issue 8604001: Move SSL layer initialization into ChannelAuthenticator implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simple->V1 Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/jingle_stream_connector.cc ('k') | remoting/protocol/pepper_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « remoting/protocol/jingle_stream_connector.cc ('k') | remoting/protocol/pepper_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698