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

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
Index: webkit/glue/p2p_transport.h
diff --git a/webkit/glue/p2p_transport.h b/webkit/glue/p2p_transport.h
index 2c3200f7f437baeacaf727f0fbfceb0887ce21f0..ad89b1cbec69e1633670230fcf67726074c13b3e 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,32 @@ class P2PTransport {
virtual void OnError(int error) = 0;
};
+ struct Config {
+ Config();
+ ~Config();
+
+ // Addresses of STUN servers. Must be in form of
+ // "server_name:<port>".
+ std::vector<std::string> stun_servers;
+
+ // Names of Relay servers.
+ std::vector<std::string> relay_servers;
+
+ // 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

Powered by Google App Engine
This is Rietveld 408576698