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

Unified Diff: webkit/glue/p2p_transport.h

Issue 7713021: Add SetProperty() in the PPB_Transport_Dev interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_transport_thunk.cc ('k') | webkit/glue/p2p_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/p2p_transport.h
diff --git a/webkit/glue/p2p_transport.h b/webkit/glue/p2p_transport.h
index 2c3200f7f437baeacaf727f0fbfceb0887ce21f0..363975f757c00206c7703e81bbeec0196cfc3a23 100644
--- a/webkit/glue/p2p_transport.h
+++ b/webkit/glue/p2p_transport.h
@@ -6,6 +6,7 @@
#define WEBKIT_GLUE_P2P_TRANSPORT_H_
#include <string>
+#include <vector>
namespace net {
class Socket;
@@ -43,13 +44,31 @@ class P2PTransport {
virtual void OnError(int error) = 0;
};
+ struct Config {
+ Config();
+ ~Config();
+
+ // STUN server address and port, e.g. "stun.example.com:23542".
+ std::string stun_server;
+
+ // Relay server name, e.g. "relay.example.com".
+ std::string relay_server;
+
+ // Relay token to use for relay servers.
+ std::string relay_token;
+
+ // TCP window sizes. Default size is used when set to 0.
+ int tcp_receive_window;
+ int tcp_send_window;
+ };
+
virtual ~P2PTransport() {}
// Initialize transport using specified configuration. Returns true
// if initialization succeeded.
virtual bool Init(const std::string& name,
Protocol protocol,
- const std::string& config,
+ const Config& config,
EventHandler* event_handler) = 0;
// Add candidate received from the remote peer. Returns false if the
« no previous file with comments | « ppapi/thunk/ppb_transport_thunk.cc ('k') | webkit/glue/p2p_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698