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

Issue 892543002: workers: Introduce a WorkerMessageFilter to ease routing/processing worker messages. (Closed)

Created:
5 years, 10 months ago by sadrul
Modified:
5 years, 10 months ago
CC:
chromium-reviews, cmumford, darin-cc_chromium.org, dgrogan, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, jsbell+idb_chromium.org, kinuko+serviceworker, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, scheib+watch_chromium.org, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

workers: Introduce a WorkerThreadMessageFilter to ease routing/processing worker messages. Move the task of managing the task-runners for the worker-thread/main-thread in a common implementation in WorkerThreadMessageFilter, and use that from the rest of the message filters. BUG=none R=jochen@chromium.org, kinuko@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/869b89123602a51ac523d97054262bc4ab6a6933

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : . #

Total comments: 5

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -389 lines) Patch
M content/child/bluetooth/bluetooth_message_filter.h View 1 2 3 4 5 1 chunk +7 lines, -15 lines 0 comments Download
M content/child/bluetooth/bluetooth_message_filter.cc View 1 2 3 4 5 1 chunk +13 lines, -19 lines 0 comments Download
M content/child/child_thread.h View 2 chunks +3 lines, -5 lines 0 comments Download
M content/child/geofencing/geofencing_message_filter.h View 1 2 3 4 5 1 chunk +7 lines, -15 lines 0 comments Download
M content/child/geofencing/geofencing_message_filter.cc View 1 2 3 4 5 1 chunk +13 lines, -20 lines 0 comments Download
M content/child/indexed_db/indexed_db_message_filter.h View 1 2 3 4 5 4 chunks +9 lines, -15 lines 0 comments Download
M content/child/indexed_db/indexed_db_message_filter.cc View 1 2 3 4 5 3 chunks +16 lines, -21 lines 0 comments Download
M content/child/navigator_connect/navigator_connect_dispatcher.h View 1 2 3 4 5 1 chunk +7 lines, -15 lines 0 comments Download
M content/child/navigator_connect/navigator_connect_dispatcher.cc View 1 2 3 4 5 1 chunk +13 lines, -21 lines 0 comments Download
M content/child/notifications/notification_dispatcher.h View 1 2 3 4 2 chunks +7 lines, -18 lines 0 comments Download
M content/child/notifications/notification_dispatcher.cc View 1 2 3 4 5 2 chunks +21 lines, -37 lines 0 comments Download
M content/child/push_messaging/push_dispatcher.h View 1 2 3 4 2 chunks +7 lines, -19 lines 0 comments Download
M content/child/push_messaging/push_dispatcher.cc View 1 2 3 4 5 3 chunks +25 lines, -44 lines 0 comments Download
M content/child/push_messaging/push_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/quota_message_filter.h View 1 2 3 4 2 chunks +7 lines, -16 lines 0 comments Download
M content/child/quota_message_filter.cc View 1 2 3 4 5 2 chunks +20 lines, -32 lines 0 comments Download
M content/child/service_worker/service_worker_message_filter.h View 1 2 3 4 5 3 chunks +9 lines, -14 lines 0 comments Download
M content/child/service_worker/service_worker_message_filter.cc View 1 2 3 4 5 5 chunks +22 lines, -27 lines 0 comments Download
A content/child/worker_thread_message_filter.h View 1 2 3 4 5 6 1 chunk +58 lines, -0 lines 0 comments Download
A content/child/worker_thread_message_filter.cc View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_message_filter.h View 1 2 3 4 5 1 chunk +7 lines, -13 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_message_filter.cc View 1 2 3 4 5 1 chunk +15 lines, -23 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
sadrul
Hi! Let me know if I should also get reviews from owners of each component ...
5 years, 10 months ago (2015-01-30 07:36:26 UTC) #2
kinuko
non-owner lgtm, with two nits https://codereview.chromium.org/892543002/diff/60001/content/child/worker_message_filter.cc File content/child/worker_message_filter.cc (right): https://codereview.chromium.org/892543002/diff/60001/content/child/worker_message_filter.cc#newcode24 content/child/worker_message_filter.cc:24: return PickleIterator(msg).ReadInt(ipc_thread_id); It's true ...
5 years, 10 months ago (2015-01-30 08:38:45 UTC) #4
kinuko
https://codereview.chromium.org/892543002/diff/60001/content/child/worker_message_filter.h File content/child/worker_message_filter.h (right): https://codereview.chromium.org/892543002/diff/60001/content/child/worker_message_filter.h#newcode48 content/child/worker_message_filter.h:48: bool OnMessageReceived(const IPC::Message& msg) override; Um... if this method ...
5 years, 10 months ago (2015-01-30 09:13:17 UTC) #5
sadrul
https://codereview.chromium.org/892543002/diff/60001/content/child/worker_message_filter.cc File content/child/worker_message_filter.cc (right): https://codereview.chromium.org/892543002/diff/60001/content/child/worker_message_filter.cc#newcode24 content/child/worker_message_filter.cc:24: return PickleIterator(msg).ReadInt(ipc_thread_id); On 2015/01/30 08:38:45, kinuko wrote: > It's ...
5 years, 10 months ago (2015-01-30 14:24:45 UTC) #7
kinuko
https://codereview.chromium.org/892543002/diff/100001/content/child/worker_thread_message_filter.cc File content/child/worker_thread_message_filter.cc (right): https://codereview.chromium.org/892543002/diff/100001/content/child/worker_thread_message_filter.cc#newcode19 content/child/worker_thread_message_filter.cc:19: first_field_in_msg_is_thread_id_(first_field_in_msg_is_thread_id) { I don't think having this in the ...
5 years, 10 months ago (2015-01-30 16:34:17 UTC) #8
sadrul
https://codereview.chromium.org/892543002/diff/100001/content/child/worker_thread_message_filter.cc File content/child/worker_thread_message_filter.cc (right): https://codereview.chromium.org/892543002/diff/100001/content/child/worker_thread_message_filter.cc#newcode19 content/child/worker_thread_message_filter.cc:19: first_field_in_msg_is_thread_id_(first_field_in_msg_is_thread_id) { On 2015/01/30 16:34:17, kinuko wrote: > I ...
5 years, 10 months ago (2015-01-30 17:02:45 UTC) #9
sadrul
https://codereview.chromium.org/892543002/diff/100001/content/child/worker_thread_message_filter.cc File content/child/worker_thread_message_filter.cc (right): https://codereview.chromium.org/892543002/diff/100001/content/child/worker_thread_message_filter.cc#newcode19 content/child/worker_thread_message_filter.cc:19: first_field_in_msg_is_thread_id_(first_field_in_msg_is_thread_id) { On 2015/01/30 17:02:45, sadrul wrote: > On ...
5 years, 10 months ago (2015-01-31 05:54:38 UTC) #10
kinuko
On 2015/01/31 05:54:38, sadrul wrote: > https://codereview.chromium.org/892543002/diff/100001/content/child/worker_thread_message_filter.cc > File content/child/worker_thread_message_filter.cc (right): > > https://codereview.chromium.org/892543002/diff/100001/content/child/worker_thread_message_filter.cc#newcode19 > ...
5 years, 10 months ago (2015-02-02 06:02:10 UTC) #11
sadrul
> > What do you think of the proposal about FirstFieldInIPCIsThreadId()? Although > > the ...
5 years, 10 months ago (2015-02-03 04:10:55 UTC) #12
kinuko
lgtm
5 years, 10 months ago (2015-02-03 06:28:11 UTC) #13
jochen (gone - plz use gerrit)
lgtm
5 years, 10 months ago (2015-02-04 12:48:31 UTC) #14
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/869b89123602a51ac523d97054262bc4ab6a6933 Cr-Commit-Position: refs/heads/master@{#314556}
5 years, 10 months ago (2015-02-04 14:20:48 UTC) #15
sadrul
5 years, 10 months ago (2015-02-04 14:20:58 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:140001) manually as
869b89123602a51ac523d97054262bc4ab6a6933 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698