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

Side by Side Diff: webkit/glue/p2p_transport.h

Issue 7762008: Implement STUN support for 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 | « content/renderer/p2p/port_allocator.cc ('k') | webkit/glue/p2p_transport.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 WEBKIT_GLUE_P2P_TRANSPORT_H_ 5 #ifndef WEBKIT_GLUE_P2P_TRANSPORT_H_
6 #define WEBKIT_GLUE_P2P_TRANSPORT_H_ 6 #define WEBKIT_GLUE_P2P_TRANSPORT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // should be destroyed. 43 // should be destroyed.
44 virtual void OnError(int error) = 0; 44 virtual void OnError(int error) = 0;
45 }; 45 };
46 46
47 struct Config { 47 struct Config {
48 Config(); 48 Config();
49 ~Config(); 49 ~Config();
50 50
51 // STUN server address and port, e.g. "stun.example.com:23542". 51 // STUN server address and port, e.g. "stun.example.com:23542".
52 std::string stun_server; 52 std::string stun_server;
53 int stun_server_port;
53 54
54 // Relay server name, e.g. "relay.example.com". 55 // Relay server address and port, e.g. "relay.example.com:4234".
55 std::string relay_server; 56 std::string relay_server;
57 int relay_server_port;
56 58
57 // Relay token to use for relay servers. 59 // Relay token to use for relay servers.
58 std::string relay_token; 60 std::string relay_token;
59 61
60 // TCP window sizes. Default size is used when set to 0. 62 // TCP window sizes. Default size is used when set to 0.
61 int tcp_receive_window; 63 int tcp_receive_window;
62 int tcp_send_window; 64 int tcp_send_window;
63 }; 65 };
64 66
65 virtual ~P2PTransport() {} 67 virtual ~P2PTransport() {}
(...skipping 11 matching lines...) Expand all
77 79
78 // Returns socket interface that can be used to send/receive 80 // Returns socket interface that can be used to send/receive
79 // data. Returned object is owned by the transport. Pending calls on 81 // data. Returned object is owned by the transport. Pending calls on
80 // the socket are canceled when the transport is destroyed. 82 // the socket are canceled when the transport is destroyed.
81 virtual net::Socket* GetChannel() = 0; 83 virtual net::Socket* GetChannel() = 0;
82 }; 84 };
83 85
84 } // namespace webkit_glue 86 } // namespace webkit_glue
85 87
86 #endif // WEBKIT_GLUE_P2P_TRANSPORT_H_ 88 #endif // WEBKIT_GLUE_P2P_TRANSPORT_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/port_allocator.cc ('k') | webkit/glue/p2p_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698