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

Issue 63843002: Add ChildMessageFilter, a base class for renderer/worker cross-thread MessageFilter (Closed)

Created:
7 years, 1 month ago by kinuko
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, alecflett
Visibility:
Public.

Description

Add ChildMessageFilter, a base class for renderer/worker cross-thread MessageFilter - Save some dup'ed code in similar message filters - Centralize WorkerRunner thread-handling code into one class (which could be helpful when we migrate worker thread implementation) BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236004

Patch Set 1 : #

Patch Set 2 : make ExtractThreadID pure virtual #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : cross thread -> child message filter #

Total comments: 8

Patch Set 5 : addressed comments #

Patch Set 6 : updated #

Patch Set 7 : RemoveFilter fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -109 lines) Patch
A content/child/child_message_filter.h View 1 2 3 4 1 chunk +68 lines, -0 lines 0 comments Download
A content/child/child_message_filter.cc View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
M content/child/child_thread.cc View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M content/child/indexed_db/indexed_db_message_filter.h View 1 2 3 2 chunks +9 lines, -8 lines 0 comments Download
M content/child/indexed_db/indexed_db_message_filter.cc View 1 2 3 2 chunks +16 lines, -26 lines 0 comments Download
M content/child/quota_message_filter.h View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M content/child/quota_message_filter.cc View 1 2 3 3 chunks +28 lines, -32 lines 0 comments Download
M content/child/service_worker/service_worker_message_filter.h View 1 2 3 1 chunk +10 lines, -9 lines 0 comments Download
M content/child/service_worker/service_worker_message_filter.cc View 1 2 3 4 2 chunks +15 lines, -20 lines 0 comments Download
A content/child/worker_thread_task_runner.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A content/child/worker_thread_task_runner.cc View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/worker/worker_thread.cc View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
kinuko
I may need to add one more message filter which needs cross-thread dispatching and I'd ...
7 years, 1 month ago (2013-11-07 07:20:38 UTC) #1
jam
cool, looks like we need this in a number of places, see also https://codereview.chromium.org/24636002/ adding ...
7 years, 1 month ago (2013-11-07 19:33:04 UTC) #2
kinuko
On 2013/11/07 19:33:04, jam wrote: > cool, looks like we need this in a number ...
7 years, 1 month ago (2013-11-08 05:33:03 UTC) #3
kinuko
On 2013/11/08 05:33:03, kinuko wrote: > On 2013/11/07 19:33:04, jam wrote: > > cool, looks ...
7 years, 1 month ago (2013-11-08 06:29:36 UTC) #4
jam
https://codereview.chromium.org/63843002/diff/860001/content/child/cross_thread_message_filter.cc File content/child/cross_thread_message_filter.cc (right): https://codereview.chromium.org/63843002/diff/860001/content/child/cross_thread_message_filter.cc#newcode30 content/child/cross_thread_message_filter.cc:30: if (!ipc_thread_id) { we should keep the ipc_thread_id stuff ...
7 years, 1 month ago (2013-11-08 19:51:58 UTC) #5
michaeln
https://codereview.chromium.org/63843002/diff/860001/content/child/cross_thread_message_filter.cc File content/child/cross_thread_message_filter.cc (right): https://codereview.chromium.org/63843002/diff/860001/content/child/cross_thread_message_filter.cc#newcode30 content/child/cross_thread_message_filter.cc:30: if (!ipc_thread_id) { On 2013/11/08 19:51:59, jam wrote: > ...
7 years, 1 month ago (2013-11-09 01:52:10 UTC) #6
kinuko
https://codereview.chromium.org/63843002/diff/860001/content/child/cross_thread_message_filter.cc File content/child/cross_thread_message_filter.cc (right): https://codereview.chromium.org/63843002/diff/860001/content/child/cross_thread_message_filter.cc#newcode30 content/child/cross_thread_message_filter.cc:30: if (!ipc_thread_id) { Done. (If I should separate a ...
7 years, 1 month ago (2013-11-15 14:40:35 UTC) #7
scherkus (not reviewing)
https://codereview.chromium.org/63843002/diff/860001/content/child/cross_thread_message_filter.h File content/child/cross_thread_message_filter.h (right): https://codereview.chromium.org/63843002/diff/860001/content/child/cross_thread_message_filter.h#newcode14 content/child/cross_thread_message_filter.h:14: class CrossThreadMessageFilter On 2013/11/15 14:40:36, kinuko wrote: > On ...
7 years, 1 month ago (2013-11-15 19:12:18 UTC) #8
jam
lgtm https://codereview.chromium.org/63843002/diff/1010001/content/child/child_message_filter.h File content/child/child_message_filter.h (right): https://codereview.chromium.org/63843002/diff/1010001/content/child/child_message_filter.h#newcode27 content/child/child_message_filter.h:27: // If implementors want to run OnMessageReceived on ...
7 years, 1 month ago (2013-11-18 05:50:01 UTC) #9
kinuko
Thanks! https://codereview.chromium.org/63843002/diff/1010001/content/child/child_message_filter.h File content/child/child_message_filter.h (right): https://codereview.chromium.org/63843002/diff/1010001/content/child/child_message_filter.h#newcode27 content/child/child_message_filter.h:27: // If implementors want to run OnMessageReceived on ...
7 years, 1 month ago (2013-11-18 06:35:46 UTC) #10
michaeln
lgtm2 https://codereview.chromium.org/63843002/diff/1010001/content/child/worker_thread_task_runner.cc File content/child/worker_thread_task_runner.cc (right): https://codereview.chromium.org/63843002/diff/1010001/content/child/worker_thread_task_runner.cc#newcode27 content/child/worker_thread_task_runner.cc:27: base::TimeDelta /* delay */) { should we assert ...
7 years, 1 month ago (2013-11-18 17:51:41 UTC) #11
kinuko
https://codereview.chromium.org/63843002/diff/1010001/content/child/worker_thread_task_runner.cc File content/child/worker_thread_task_runner.cc (right): https://codereview.chromium.org/63843002/diff/1010001/content/child/worker_thread_task_runner.cc#newcode27 content/child/worker_thread_task_runner.cc:27: base::TimeDelta /* delay */) { On 2013/11/18 17:51:42, michaeln ...
7 years, 1 month ago (2013-11-19 04:51:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/63843002/1460001
7 years, 1 month ago (2013-11-19 04:55:50 UTC) #13
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=190043
7 years, 1 month ago (2013-11-19 07:16:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/63843002/1460001
7 years, 1 month ago (2013-11-19 08:50:16 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=190082
7 years, 1 month ago (2013-11-19 10:24:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/63843002/1460001
7 years, 1 month ago (2013-11-19 10:45:57 UTC) #17
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=190098
7 years, 1 month ago (2013-11-19 12:04:21 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/63843002/1920001
7 years, 1 month ago (2013-11-19 14:16:27 UTC) #19
commit-bot: I haz the power
7 years, 1 month ago (2013-11-19 16:34:39 UTC) #20
Message was sent while issue was closed.
Change committed as 236004

Powered by Google App Engine
This is Rietveld 408576698