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

Unified Diff: ppapi/c/dev/ppb_transport_dev.h

Issue 7888022: Add DISABLE_TCP_TRANSPORT flag in the Transport API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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: 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 fb1513ef690f52bcbdfc41a5a2af18ad877ff41a..26a60bc1b3522ace714921c5b310506f4c38fe04 100644
--- a/ppapi/c/dev/ppb_transport_dev.h
+++ b/ppapi/c/dev/ppb_transport_dev.h
@@ -48,7 +48,11 @@ typedef enum {
PP_TRANSPORTPROPERTY_TCP_NO_DELAY = 7,
// Delay for ACK packets in milliseconds. By default set to 100ms.
- PP_TRANSPORTPROPERTY_TCP_ACK_DELAY = 8
+ PP_TRANSPORTPROPERTY_TCP_ACK_DELAY = 8,
+
+ // Types of ports to use. An integer that is a bit-mast of
+ // PP_TransportPorts values. By default all ports are enabled.
+ PP_TRANSPORTPROPERTY_PROTOCOLS = 9
} PP_TransportProperty;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4);
@@ -60,6 +64,17 @@ typedef enum {
PP_TRANSPORTRELAYMODE_GOOGLE = 1
} PP_TransportRelayMode;
+typedef enum {
+ PP_TRANSPORTPROTOCOL_UDP = 1 << 0,
+ PP_TRANSPORTPROTOCOL_TCP = 1 << 1,
+ PP_TRANSPORTPROTOCOL_STUN = 1 << 2,
+ PP_TRANSPORTPROTOCOL_RELAY_UDP = 1 << 3,
+ PP_TRANSPORTPROTOCOL_RELAY_TCP = 1 << 4,
+ PP_TRANSPORTPROTOCOL_RELAY_SSLTCP = 1 << 5,
+
+ PP_TRANSPORTPROTOCOL_ALL = 0xFFFFFFFF
+} PP_TransportProtocol;
+
struct PPB_Transport_Dev {
// Creates a new transport object with the specified name using the
// specified protocol.

Powered by Google App Engine
This is Rietveld 408576698