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

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
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 crypto {
18 class RSAPrivateKey;
19 } // namespace crypto
20
21 namespace cricket {
22 class Candidate;
23 } // namespace cricket
24
25 namespace remoting {
26 namespace protocol {
27
28 class PepperChannel : public base::NonThreadSafe {
29 public:
30 struct TransportConfig {
Wez 2011/09/01 01:08:29 nit: Consider moving this out to be PepperChannelC
Sergey Ulanov 2011/09/08 00:48:36 Moved it of PepperChannel, but didn't rename it. I
31 TransportConfig();
32 ~TransportConfig();
33
34 bool nat_traversal;
35 std::string stun_server;
36 std::string relay_server;
37 std::string relay_token;
38 };
39
40 PepperChannel() { }
41 virtual ~PepperChannel() { }
42
43 virtual void Connect(const TransportConfig& config,
44 const std::string& remote_cert) = 0;
45 virtual void AddRemoveCandidate(const cricket::Candidate& candidate) = 0;
46 virtual const std::string& name() = 0;
Wez 2011/09/01 01:08:29 Some comments to explain these APIs would be handy
Sergey Ulanov 2011/09/08 00:48:36 Done.
47
48 protected:
49 DISALLOW_COPY_AND_ASSIGN(PepperChannel);
50 };
51
52 } // namespace protocol
53 } // namespace remoting
54
55 #endif // REMOTING_PROTOCOL_PEPPER_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698