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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

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: Actually export v0.5 interface, and add thunk for it. Fix unit-test and add missing IsConnected che… 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK, 664 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK,
665 uint32 /* plugin_dispatcher_id */, 665 uint32 /* plugin_dispatcher_id */,
666 uint32 /* socket_id */, 666 uint32 /* socket_id */,
667 bool /* succeeded */, 667 bool /* succeeded */,
668 std::string /* data */) 668 std::string /* data */)
669 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK, 669 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK,
670 uint32 /* plugin_dispatcher_id */, 670 uint32 /* plugin_dispatcher_id */,
671 uint32 /* socket_id */, 671 uint32 /* socket_id */,
672 bool /* succeeded */, 672 bool /* succeeded */,
673 int32_t /* bytes_written */) 673 int32_t /* bytes_written */)
674 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SetBoolOptionACK,
675 uint32 /* plugin_dispatcher_id */,
676 uint32 /* socket_id */,
677 bool /* succeeded */)
674 678
675 // PPB_URLLoader_Trusted 679 // PPB_URLLoader_Trusted
676 IPC_MESSAGE_ROUTED1( 680 IPC_MESSAGE_ROUTED1(
677 PpapiMsg_PPBURLLoader_UpdateProgress, 681 PpapiMsg_PPBURLLoader_UpdateProgress,
678 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */) 682 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
679 683
680 // PPB_TCPServerSocket_Private. 684 // PPB_TCPServerSocket_Private.
681 685
682 // |socket_resource| should not be used as Resource in browser. The 686 // |socket_resource| should not be used as Resource in browser. The
683 // only purpose of this argument is to be echoed back. 687 // only purpose of this argument is to be echoed back.
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 std::vector<std::vector<char> > /* trusted_certs */, 1210 std::vector<std::vector<char> > /* trusted_certs */,
1207 std::vector<std::vector<char> > /* untrusted_certs */) 1211 std::vector<std::vector<char> > /* untrusted_certs */)
1208 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read, 1212 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read,
1209 uint32 /* socket_id */, 1213 uint32 /* socket_id */,
1210 int32_t /* bytes_to_read */) 1214 int32_t /* bytes_to_read */)
1211 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write, 1215 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write,
1212 uint32 /* socket_id */, 1216 uint32 /* socket_id */,
1213 std::string /* data */) 1217 std::string /* data */)
1214 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, 1218 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect,
1215 uint32 /* socket_id */) 1219 uint32 /* socket_id */)
1220 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SetBoolOption,
1221 uint32_t /* socket_id */,
yzshen1 2013/02/12 17:39:58 Please be consistent with other messages about the
Wez 2013/02/12 18:45:21 Done.
1222 uint32_t /* name */,
yzshen1 2013/02/12 17:39:58 Please use the enum type.
Wez 2013/02/12 18:45:21 This is an IPC message definition. Using the enum
yzshen1 2013/02/13 08:07:14 I don't understand, why the recipients shouldn't r
Wez 2013/02/13 22:06:22 Because over IPC an enum is transferred as an int.
yzshen1 2013/02/14 08:35:38 Your concern makes sense. I am okay to do it your
Wez 2013/02/14 08:57:53 Agreed; I've filed crbug.com/176110 for fixing the
Wez 2013/02/14 08:57:53 D'oh! Yes, I should remove the cast. There are
1223 bool /* value */)
1216 1224
1217 // UDPSocketPrivate. 1225 // UDPSocketPrivate.
1218 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocketPrivate_Create) 1226 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocketPrivate_Create)
1219 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocketPrivate_SetBoolSocketFeature, 1227 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocketPrivate_SetBoolSocketFeature,
1220 int32_t /* name */, 1228 int32_t /* name */,
1221 bool /* value */) 1229 bool /* value */)
1222 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocketPrivate_Bind, 1230 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocketPrivate_Bind,
1223 PP_NetAddress_Private /* net_addr */) 1231 PP_NetAddress_Private /* net_addr */)
1224 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocketPrivate_RecvFrom, 1232 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocketPrivate_RecvFrom,
1225 int32_t /* num_bytes */) 1233 int32_t /* num_bytes */)
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 std::vector<ppapi::HostResource> /* buffers */, 1707 std::vector<ppapi::HostResource> /* buffers */,
1700 uint32_t /* buffer_size */) 1708 uint32_t /* buffer_size */)
1701 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1709 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1702 uint32_t /* status */) 1710 uint32_t /* status */)
1703 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1711 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1704 uint32_t /* error */) 1712 uint32_t /* error */)
1705 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1713 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1706 uint32_t /* buffer */) 1714 uint32_t /* buffer */)
1707 1715
1708 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1716 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698