| 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
|
|
|