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

Side by Side Diff: remoting/protocol/pepper_channel.h

Issue 7778022: Chromoting protocol implementation based on P2P Transport API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 months 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_session.cc ('k') | remoting/protocol/pepper_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_session.cc ('k') | remoting/protocol/pepper_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698