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

Issue 1262253004: Let IPC::SyncMessageFilter take advantage of thread-safe Send. (Closed)

Created:
5 years, 4 months ago by Ken Rockot(use gerrit already)
Modified:
5 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let IPC::SyncMessageFilter take advantage of thread-safe Send. SyncMessageFilter is unnecessarily hopping to the IO thread before writing to its underlying Sender when the underlying Sender has a thread-safe Send implementation. This fixes that. BUG=516464 Committed: https://crrev.com/ac64ae92ff624f1befe3b973e0f0fd0204f2eac1 Cr-Commit-Position: refs/heads/master@{#342027}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 5

Patch Set 3 : minus some code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -32 lines) Patch
M components/nacl/loader/nacl_listener.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher_unittest.cc View 1 2 1 chunk +11 lines, -6 lines 0 comments Download
M content/child/indexed_db/webidbcursor_impl_unittest.cc View 1 2 2 chunks +10 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/gpu/queue_message_swap_promise_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_proxy.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ipc/ipc_sync_channel.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M ipc/ipc_sync_channel.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_sync_message_filter.h View 4 chunks +9 lines, -2 lines 0 comments Download
M ipc/ipc_sync_message_filter.cc View 2 chunks +12 lines, -7 lines 0 comments Download
M ppapi/nacl_irt/manifest_service.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (13 generated)
Ken Rockot(use gerrit already)
5 years, 4 months ago (2015-08-03 20:47:03 UTC) #2
jam
nice catch It would be nice to avoid putting this on IPC::Sender, since it's a ...
5 years, 4 months ago (2015-08-03 22:33:49 UTC) #3
Ken Rockot(use gerrit already)
On 2015/08/03 22:33:49, jam wrote: > nice catch > > It would be nice to ...
5 years, 4 months ago (2015-08-03 22:36:22 UTC) #4
Ken Rockot(use gerrit already)
OK - turns out there are still a few places where SyncMessageFilter is constructed manually. ...
5 years, 4 months ago (2015-08-04 15:53:34 UTC) #9
jam
On 2015/08/04 15:53:34, Ken Rockot wrote: > OK - turns out there are still a ...
5 years, 4 months ago (2015-08-04 16:29:58 UTC) #10
Ken Rockot(use gerrit already)
Please take another look. I factored out some common test boilerplate into a TestThreadSafeSender, and ...
5 years, 4 months ago (2015-08-04 21:08:42 UTC) #11
jam
On 2015/08/04 21:08:42, Ken Rockot wrote: > Please take another look. I factored out some ...
5 years, 4 months ago (2015-08-04 23:06:42 UTC) #12
jabdelmalek
lgtm
5 years, 4 months ago (2015-08-04 23:45:36 UTC) #14
jabdelmalek
(based on IMs)
5 years, 4 months ago (2015-08-04 23:45:45 UTC) #15
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1262253004/diff/120001/content/child/child_thread_impl.cc File content/child/child_thread_impl.cc (right): https://codereview.chromium.org/1262253004/diff/120001/content/child/child_thread_impl.cc#newcode369 content/child/child_thread_impl.cc:369: histogram_message_filter_ = new ChildHistogramMessageFilter(); On 2015/08/04 23:06:41, jam wrote: ...
5 years, 4 months ago (2015-08-04 23:55:45 UTC) #16
jam
lgtm
5 years, 4 months ago (2015-08-05 00:14:43 UTC) #18
Ken Rockot(use gerrit already)
+kbr: Please review content/renderer/gpu/ +michaeln: Please review content/child/indexed_db/ +mseaborn: Please review components/nacl and ppapi/ Thanks!
5 years, 4 months ago (2015-08-05 00:35:06 UTC) #20
michaeln
https://codereview.chromium.org/1262253004/diff/160001/content/test/test_thread_safe_sender.cc File content/test/test_thread_safe_sender.cc (right): https://codereview.chromium.org/1262253004/diff/160001/content/test/test_thread_safe_sender.cc#newcode15 content/test/test_thread_safe_sender.cc:15: class FakeIPCListener : public IPC::Listener { this isn't used? ...
5 years, 4 months ago (2015-08-05 01:46:15 UTC) #23
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1262253004/diff/160001/content/test/test_thread_safe_sender.cc File content/test/test_thread_safe_sender.cc (right): https://codereview.chromium.org/1262253004/diff/160001/content/test/test_thread_safe_sender.cc#newcode15 content/test/test_thread_safe_sender.cc:15: class FakeIPCListener : public IPC::Listener { On 2015/08/05 01:46:15, ...
5 years, 4 months ago (2015-08-05 05:23:36 UTC) #24
michaeln
lgtm!
5 years, 4 months ago (2015-08-05 18:36:56 UTC) #25
Ken Rockot(use gerrit already)
Looks like mseaborn is OOO, so updating reviewers. bbudge: Please take a look at ppapi/ ...
5 years, 4 months ago (2015-08-05 19:26:23 UTC) #27
bbudge
ppapi lgtm
5 years, 4 months ago (2015-08-05 19:31:02 UTC) #28
bradnelson
lgtm
5 years, 4 months ago (2015-08-05 20:59:29 UTC) #29
Ken Russell (switch to Gerrit)
content/common/gpu/client lgtm
5 years, 4 months ago (2015-08-06 00:16:32 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1262253004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1262253004/180001
5 years, 4 months ago (2015-08-06 00:26:34 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:180001)
5 years, 4 months ago (2015-08-06 00:32:34 UTC) #34
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 00:33:07 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ac64ae92ff624f1befe3b973e0f0fd0204f2eac1
Cr-Commit-Position: refs/heads/master@{#342027}

Powered by Google App Engine
This is Rietveld 408576698