Chromium Code Reviews| Index: ppapi/c/dev/ppb_transport_dev.h |
| diff --git a/ppapi/c/dev/ppb_transport_dev.h b/ppapi/c/dev/ppb_transport_dev.h |
| index bc3a8cd44075eddb344fdcffa8906a2fffb46563..d61a13773db3c08dbf273d0b6dde5a107dd1ab50 100644 |
| --- a/ppapi/c/dev/ppb_transport_dev.h |
| +++ b/ppapi/c/dev/ppb_transport_dev.h |
| @@ -14,7 +14,28 @@ |
| #include "ppapi/c/pp_var.h" |
| #define PPB_TRANSPORT_DEV_INTERFACE_0_5 "PPB_Transport;0.5" |
|
brettw
2011/08/25 16:48:43
Since we're not keeping backwards compat, you can
Sergey Ulanov
2011/08/25 17:36:53
Done.
|
| -#define PPB_TRANSPORT_DEV_INTERFACE PPB_TRANSPORT_DEV_INTERFACE_0_5 |
| +#define PPB_TRANSPORT_DEV_INTERFACE_0_6 "PPB_Transport;0.6" |
| +#define PPB_TRANSPORT_DEV_INTERFACE PPB_TRANSPORT_DEV_INTERFACE_0_6 |
| + |
| +typedef enum { |
| + // STUN server address and port, e.g "stun.l.google.com:19302". |
|
brettw
2011/08/25 16:48:43
Why don't you use "...example.com" here and below
Sergey Ulanov
2011/08/25 17:36:53
Done.
|
| + PP_TRANSPORTPROPERTY_STUN_SERVER, |
|
brettw
2011/08/25 16:48:43
These should have explicit values, so can you say
Sergey Ulanov
2011/08/25 17:36:53
Done.
|
| + |
| + // Relay server name, e.g. "relay.google.com". |
| + PP_TRANSPORTPROPERTY_RELAY_SERVER, |
| + |
| + // Single string that specifies token for use with relay server. |
| + PP_TRANSPORTPROPERTY_RELAY_TOKEN, |
| + |
| + // TCP receive window in bytes. Takes effect only for PseudoTCP |
| + // connections. |
| + PP_TRANSPORTPROPERTY_TCP_RECEIVE_WINDOW, |
| + |
| + // TCP send window in bytes. Takes effect only for PseudoTCP |
| + // connections. |
| + PP_TRANSPORTPROPERTY_TCP_SEND_WINDOW |
| +} PP_TransportProperty; |
| +PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4); |
| struct PPB_Transport_Dev { |
| // Creates a new transport object with the specified name using the |
| @@ -34,6 +55,11 @@ struct PPB_Transport_Dev { |
| // connect type, protocol |
| // RTT |
| + // Sets various configuration properties of the transport. |
| + int32_t (*SetProperty)(PP_Resource transport, |
| + PP_TransportProperty property, |
| + struct PP_Var value); |
| + |
| // Establishes a connection to the remote peer. Returns |
| // PP_OK_COMPLETIONPENDING and notifies on |cb| when connectivity is |
| // established (or timeout occurs). |