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

Issue 12220050: Provide a way to disable Nagle's algorithm on Pepper TCP sockets. (Closed)

Created:
7 years, 10 months ago by Wez
Modified:
7 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Provide a way to disable Nagle's algorithm on Pepper TCP sockets. This CL adds a SetSocketFeature() API to PPB_TCPSocket_Private, supporting one option, to control Nagle's algorithim on the underlying socket. BUG=170248 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184087

Patch Set 1 #

Patch Set 2 : Update C++ wrapper and add test for SetSocketFeature. #

Patch Set 3 : Remove unnecessary checks for newer interface versions in old, stable API calls #

Patch Set 4 : Add TCPSocketSetBoolFeature to MockPluginDelegate #

Patch Set 5 : Add missing completion callback implementation. #

Total comments: 47

Patch Set 6 : Rename to SetOption & address review comments. #

Patch Set 7 : Fix indentation. #

Patch Set 8 : Add missing SendSetBoolOptionAck implementation. #

Patch Set 9 : Actually export v0.5 interface, and add thunk for it. Fix unit-test and add missing IsConnected che… #

Total comments: 12

Patch Set 10 : Tweak IPC field types. #

Patch Set 11 : Restore multi-version checks in TCP & UDP socket wrappers. #

Patch Set 12 : Remove enum cast. #

Patch Set 13 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -16 lines) Patch
M content/browser/renderer_host/pepper/pepper_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket.h View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +35 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +23 lines, -3 lines 0 comments Download
M ppapi/api/private/ppb_tcp_socket_private.idl View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -1 line 0 comments Download
M ppapi/c/pp_macros.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/c/private/ppb_tcp_socket_private.h View 1 2 3 4 5 6 7 8 6 chunks +66 lines, -4 lines 0 comments Download
M ppapi/cpp/private/tcp_socket_private.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/cpp/private/tcp_socket_private.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +67 lines, -2 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +107 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_tcp_socket_private_proxy.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_tcp_socket_private_proxy.cc View 1 2 3 4 5 4 chunks +23 lines, -0 lines 0 comments Download
M ppapi/shared_impl/private/tcp_socket_private_impl.h View 1 2 3 4 5 4 chunks +7 lines, -0 lines 0 comments Download
M ppapi/shared_impl/private/tcp_socket_private_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +32 lines, -0 lines 0 comments Download
M ppapi/tests/test_tcp_socket_private.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_tcp_socket_private.cc View 1 2 3 4 5 6 7 8 2 chunks +34 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private_no_permissions.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_tcp_socket_private_api.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_tcp_socket_private_thunk.cc View 1 2 3 4 5 4 chunks +32 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_tcp_socket_private_impl.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Wez
yzshen: PTAL :) dmichael: We don't seem to have any tests for PPB_TCPSocket_Private... am I ...
7 years, 10 months ago (2013-02-07 00:15:03 UTC) #1
dmichael (off chromium)
It looks like there are tests to me: ppapi/tests/test_tcp_socket_private* ...though I haven't looked carefully at ...
7 years, 10 months ago (2013-02-07 18:23:10 UTC) #2
Wez
On 2013/02/07 18:23:10, dmichael wrote: > It looks like there are tests to me: ppapi/tests/test_tcp_socket_private* ...
7 years, 10 months ago (2013-02-07 19:48:14 UTC) #3
dmichael (off chromium)
On Thu, Feb 7, 2013 at 12:48 PM, <wez@chromium.org> wrote: > On 2013/02/07 18:23:10, dmichael ...
7 years, 10 months ago (2013-02-07 20:00:12 UTC) #4
Wez
On 2013/02/07 20:00:12, dmichael wrote: > On Thu, Feb 7, 2013 at 12:48 PM, <mailto:wez@chromium.org> ...
7 years, 10 months ago (2013-02-07 21:23:10 UTC) #5
yzshen1
https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_message_filter.cc File content/browser/renderer_host/pepper/pepper_message_filter.cc (right): https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_message_filter.cc#newcode364 content/browser/renderer_host/pepper/pepper_message_filter.cc:364: Do you plan to add implementation later? If yes, ...
7 years, 10 months ago (2013-02-08 21:51:11 UTC) #6
Wez
PTAL; let's discuss the C++ wrapper versioning issue off-CL. https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_message_filter.cc File content/browser/renderer_host/pepper/pepper_message_filter.cc (right): https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_message_filter.cc#newcode364 content/browser/renderer_host/pepper/pepper_message_filter.cc:364: ...
7 years, 10 months ago (2013-02-10 04:47:02 UTC) #7
Wez
FYI, I've added thunking for the new version of the interface - I notice the ...
7 years, 10 months ago (2013-02-10 09:20:48 UTC) #8
yzshen1
https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_tcp_socket.h File content/browser/renderer_host/pepper/pepper_tcp_socket.h (right): https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_tcp_socket.h#newcode63 content/browser/renderer_host/pepper/pepper_tcp_socket.h:63: void SetBoolFeature(uint32_t name, bool value); On 2013/02/10 04:47:02, Wez ...
7 years, 10 months ago (2013-02-12 17:39:58 UTC) #9
yzshen
> The previous version wasn't thunked What do you mean by that? I thought we ...
7 years, 10 months ago (2013-02-12 18:02:46 UTC) #10
Wez
On 2013/02/12 18:02:46, yzshen wrote: > > The previous version wasn't thunked > What do ...
7 years, 10 months ago (2013-02-12 18:45:07 UTC) #11
Wez
https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_tcp_socket.h File content/browser/renderer_host/pepper/pepper_tcp_socket.h (right): https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_tcp_socket.h#newcode63 content/browser/renderer_host/pepper/pepper_tcp_socket.h:63: void SetBoolFeature(uint32_t name, bool value); On 2013/02/12 17:39:58, yzshen1 ...
7 years, 10 months ago (2013-02-12 18:45:20 UTC) #12
yzshen
I think this is not used but somebody forgot to remove it. Please see interfaces_ppb_private_no_permissions.h<https://code.google.com/p/chromium/codesearch#chromium/src/ppapi/thunk/interfaces_ppb_private_no_permissions.h> ...
7 years, 10 months ago (2013-02-13 07:57:05 UTC) #13
yzshen1
https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_tcp_socket.h File content/browser/renderer_host/pepper/pepper_tcp_socket.h (right): https://chromiumcodereview.appspot.com/12220050/diff/12001/content/browser/renderer_host/pepper/pepper_tcp_socket.h#newcode63 content/browser/renderer_host/pepper/pepper_tcp_socket.h:63: void SetBoolFeature(uint32_t name, bool value); You could directly use ...
7 years, 10 months ago (2013-02-13 08:07:14 UTC) #14
Wez
https://chromiumcodereview.appspot.com/12220050/diff/6005/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://chromiumcodereview.appspot.com/12220050/diff/6005/ppapi/proxy/ppapi_messages.h#newcode1222 ppapi/proxy/ppapi_messages.h:1222: uint32_t /* name */, On 2013/02/13 08:07:14, yzshen1 wrote: ...
7 years, 10 months ago (2013-02-13 22:06:22 UTC) #15
yzshen1
https://chromiumcodereview.appspot.com/12220050/diff/6005/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://chromiumcodereview.appspot.com/12220050/diff/6005/ppapi/proxy/ppapi_messages.h#newcode1222 ppapi/proxy/ppapi_messages.h:1222: uint32_t /* name */, Your concern makes sense. I ...
7 years, 10 months ago (2013-02-14 08:35:38 UTC) #16
Wez
https://chromiumcodereview.appspot.com/12220050/diff/6005/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://chromiumcodereview.appspot.com/12220050/diff/6005/ppapi/proxy/ppapi_messages.h#newcode1222 ppapi/proxy/ppapi_messages.h:1222: uint32_t /* name */, On 2013/02/14 08:35:38, yzshen1 wrote: ...
7 years, 10 months ago (2013-02-14 08:57:53 UTC) #17
yzshen1
LGTM Thanks!
7 years, 10 months ago (2013-02-14 09:07:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/12220050/15034
7 years, 10 months ago (2013-02-15 03:07:34 UTC) #19
commit-bot: I haz the power
Presubmit check for 12220050-15034 failed and returned exit status 1. INFO:root:Found 28 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-15 03:07:57 UTC) #20
Wez
Cris, can you review the IPC message & handling, plz?
7 years, 10 months ago (2013-02-15 03:21:49 UTC) #21
Tom Sepez
Messages LGTM.
7 years, 10 months ago (2013-02-15 22:48:28 UTC) #22
Wez
On 2013/02/15 22:48:28, Tom Sepez wrote: > Messages LGTM. Thanks!
7 years, 10 months ago (2013-02-15 22:49:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/12220050/18002
7 years, 10 months ago (2013-02-15 22:51:19 UTC) #24
commit-bot: I haz the power
Presubmit check for 12220050-18002 failed and returned exit status 1. INFO:root:Found 28 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-15 22:51:32 UTC) #25
Cris Neckar
Sorry I missed this guy, I was on vacation :)
7 years, 10 months ago (2013-02-19 20:00:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/12220050/18002
7 years, 10 months ago (2013-02-21 03:43:56 UTC) #27
commit-bot: I haz the power
Presubmit check for 12220050-18002 failed and returned exit status 1. INFO:root:Found 28 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-21 03:44:08 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/12220050/18002
7 years, 10 months ago (2013-02-21 07:25:21 UTC) #29
commit-bot: I haz the power
Presubmit check for 12220050-18002 failed and returned exit status 1. INFO:root:Found 28 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-21 07:25:33 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/12220050/18002
7 years, 10 months ago (2013-02-22 03:49:49 UTC) #31
commit-bot: I haz the power
Failed to apply patch for ppapi/thunk/thunk.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-22 03:49:57 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/12220050/33001
7 years, 10 months ago (2013-02-22 06:04:52 UTC) #33
commit-bot: I haz the power
7 years, 10 months ago (2013-02-22 11:17:10 UTC) #34
Message was sent while issue was closed.
Change committed as 184087

Powered by Google App Engine
This is Rietveld 408576698