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

Unified Diff: ppapi/api/private/ppb_tcp_socket_private.idl

Issue 12220050: Provide a way to disable Nagle's algorithm on Pepper TCP sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 10 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/pepper/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppb_tcp_socket_private.idl
diff --git a/ppapi/api/private/ppb_tcp_socket_private.idl b/ppapi/api/private/ppb_tcp_socket_private.idl
index 385dee6b4fe526fdf2a3301ac5ff1027f10e6b75..5c5d54af41e0526d017040a67150978c9e1dd608 100644
--- a/ppapi/api/private/ppb_tcp_socket_private.idl
+++ b/ppapi/api/private/ppb_tcp_socket_private.idl
@@ -9,7 +9,19 @@
label Chrome {
M17 = 0.3,
- M20 = 0.4
+ M20 = 0.4,
+ M27 = 0.5
+};
+
+[assert_size(4)]
+enum PP_TCPSocketOption_Private {
+ // Special value used for testing. Guaranteed to fail SetOption().
+ PP_TCPSOCKETOPTION_INVALID = 0,
+
+ // Disable coalescing of small writes to make TCP segments, and instead
+ // deliver data immediately. For SSL sockets, this option must be set before
+ // SSLHandshake() is called. Value type is PP_VARTYPE_BOOL.
+ PP_TCPSOCKETOPTION_NO_DELAY = 1
};
/**
@@ -134,4 +146,17 @@ interface PPB_TCPSocket_Private {
* method.
*/
void Disconnect([in] PP_Resource tcp_socket);
+
+ /**
+ * Sets an option on |tcp_socket|. Supported |name| and |value| parameters
+ * are as described for PP_TCPSocketOption_Private. |callback| will be
+ * invoked with PP_OK if setting the option succeeds, or an error code
+ * otherwise. The socket must be connection before SetOption is called.
+ */
+ [version=0.5]
+ int32_t SetOption([in] PP_Resource tcp_socket,
+ [in] PP_TCPSocketOption_Private name,
+ [in] PP_Var value,
+ [in] PP_CompletionCallback callback);
+
};
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698