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 2396273002: ServiceWorker: Mojofication of ServiceWorkerDispatcherHost (Closed)

Created:
4 years, 2 months ago by shimazu
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, blink-worker-reviews_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, mlamouri+watch-content_chromium.org, nhiroki, qsr+mojo_chromium.org, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Mojofication of ServiceWorkerDispatcherHost This patch is to mojofy ServiceWorkerDispatcherHost which is a browser-side MessageFilter handling chromium IPC. Most of IPCs from the renderer to the browser related to the service workers are going through this object, so I can mojofy all of the IPCs using this way. In this patch, the ordering issue is avoided by using AssociatedInterface bound to MessageChannel. As the first touch, I mojofied ProviderCreated. BUG=629701 Committed: https://crrev.com/804b3e4223615df89434bad6c33ed922393fd8c9 Cr-Commit-Position: refs/heads/master@{#425639}

Patch Set 1 #

Patch Set 2 : Moved ptr of dispatcher_host to SWNetworkProvider #

Total comments: 6

Patch Set 3 : Removed GetWeakPtr and moved a method to private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -18 lines) Patch
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 5 chunks +19 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host_unittest.cc View 6 chunks +12 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_test_utils.h View 1 chunk +22 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.cc View 1 2 chunks +10 lines, -2 lines 0 comments Download
M content/common/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A content/common/service_worker/service_worker.mojom View 1 chunk +17 lines, -0 lines 0 comments Download
A content/common/service_worker/service_worker_types.mojom View 1 chunk +20 lines, -0 lines 0 comments Download
A content/common/service_worker/service_worker_types.typemap View 1 chunk +12 lines, -0 lines 0 comments Download
A content/common/service_worker/service_worker_types_traits.h View 1 chunk +24 lines, -0 lines 0 comments Download
A content/common/service_worker/service_worker_types_traits.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M content/common/typemaps.gni View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
shimazu
ptal:)
4 years, 2 months ago (2016-10-07 04:22:56 UTC) #3
horo
https://codereview.chromium.org/2396273002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/2396273002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode108 content/browser/service_worker/service_worker_dispatcher_host.cc:108: base::Bind(&ServiceWorkerDispatcherHost::AddMojoBinding, GetWeakPtr())); I think we don't need to use ...
4 years, 2 months ago (2016-10-07 07:39:29 UTC) #4
shimazu
updated! ptal again https://codereview.chromium.org/2396273002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/2396273002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode108 content/browser/service_worker/service_worker_dispatcher_host.cc:108: base::Bind(&ServiceWorkerDispatcherHost::AddMojoBinding, GetWeakPtr())); On 2016/10/07 07:39:29, horo ...
4 years, 2 months ago (2016-10-14 08:15:03 UTC) #6
horo
lgtm
4 years, 2 months ago (2016-10-15 01:01:36 UTC) #7
shimazu
mkwst: could you take a look at mojom, typemap and content_browser_manifest.json? avi: could you check ...
4 years, 2 months ago (2016-10-17 01:44:20 UTC) #9
Avi (use Gerrit)
On 2016/10/17 01:44:20, shimazu wrote: > mkwst: could you take a look at mojom, typemap ...
4 years, 2 months ago (2016-10-17 02:43:05 UTC) #10
Mike West
mojo bits LGTM.
4 years, 2 months ago (2016-10-17 07:28:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2396273002/60001
4 years, 2 months ago (2016-10-17 07:42:24 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 2 months ago (2016-10-17 09:13:50 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 09:15:13 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/804b3e4223615df89434bad6c33ed922393fd8c9
Cr-Commit-Position: refs/heads/master@{#425639}

Powered by Google App Engine
This is Rietveld 408576698