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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/jingle_stream_connector.cc ('k') | remoting/protocol/pepper_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "base/threading/non_thread_safe.h" 11 #include "base/threading/non_thread_safe.h"
12 12
13 namespace pp { 13 namespace pp {
14 class Instance; 14 class Instance;
15 } // namespace pp 15 } // namespace pp
16 16
17 namespace cricket { 17 namespace cricket {
18 class Candidate; 18 class Candidate;
19 } // namespace cricket 19 } // namespace cricket
20 20
21 namespace remoting { 21 namespace remoting {
22 namespace protocol { 22 namespace protocol {
23 23
24 class ChannelAuthenticator;
24 struct TransportConfig; 25 struct TransportConfig;
25 26
26 // Interface for stream and datagram channels used by PepperSession. 27 // Interface for stream and datagram channels used by PepperSession.
27 class PepperChannel : public base::NonThreadSafe { 28 class PepperChannel : public base::NonThreadSafe {
28 public: 29 public:
29 PepperChannel() { } 30 PepperChannel() { }
30 virtual ~PepperChannel() { } 31 virtual ~PepperChannel() { }
31 32
32 // Connect the channel using specified |config|. 33 // Connect the channel using specified |config|. The specified
34 // |authenticator| is used to authenticate the channel. Takes
35 // ownership of |authenticator|.
33 virtual void Connect(pp::Instance* pp_instance, 36 virtual void Connect(pp::Instance* pp_instance,
34 const TransportConfig& config, 37 const TransportConfig& config,
35 const std::string& remote_cert) = 0; 38 ChannelAuthenticator* authenticator) = 0;
36 39
37 // Adds |candidate| received from the peer. 40 // Adds |candidate| received from the peer.
38 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) = 0; 41 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) = 0;
39 42
40 // Name of the channel. 43 // Name of the channel.
41 virtual const std::string& name() const = 0; 44 virtual const std::string& name() const = 0;
42 45
43 // returns true if the channel is already connected 46 // Returns true if the channel is already connected.
44 virtual bool is_connected() const = 0; 47 virtual bool is_connected() const = 0;
45 48
46 protected: 49 protected:
47 DISALLOW_COPY_AND_ASSIGN(PepperChannel); 50 DISALLOW_COPY_AND_ASSIGN(PepperChannel);
48 }; 51 };
49 52
50 } // namespace protocol 53 } // namespace protocol
51 } // namespace remoting 54 } // namespace remoting
52 55
53 #endif // REMOTING_PROTOCOL_PEPPER_CHANNEL_H_ 56 #endif // REMOTING_PROTOCOL_PEPPER_CHANNEL_H_
OLDNEW
« 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