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

Unified Diff: ppapi/c/dev/ppb_transport_dev.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 | « content/renderer/p2p/p2p_transport_impl_unittest.cc ('k') | ppapi/cpp/dev/transport_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b1716e3ce277d048dc74aaf7b121d16fa3963b63 100644
--- a/ppapi/c/dev/ppb_transport_dev.h
+++ b/ppapi/c/dev/ppb_transport_dev.h
@@ -13,8 +13,28 @@
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h"
-#define PPB_TRANSPORT_DEV_INTERFACE_0_5 "PPB_Transport;0.5"
-#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.example.com:19302".
+ PP_TRANSPORTPROPERTY_STUN_SERVER = 0,
+
+ // Relay server name, e.g. "relay.example.com".
+ PP_TRANSPORTPROPERTY_RELAY_SERVER = 1,
+
+ // Single string that specifies token for use with relay server.
+ PP_TRANSPORTPROPERTY_RELAY_TOKEN = 2,
+
+ // TCP receive window in bytes. Takes effect only for PseudoTCP
+ // connections.
+ PP_TRANSPORTPROPERTY_TCP_RECEIVE_WINDOW = 3,
+
+ // TCP send window in bytes. Takes effect only for PseudoTCP
+ // connections.
+ PP_TRANSPORTPROPERTY_TCP_SEND_WINDOW = 4
+} 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 +54,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).
« no previous file with comments | « content/renderer/p2p/p2p_transport_impl_unittest.cc ('k') | ppapi/cpp/dev/transport_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698