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

Issue 1149383004: [3/5 chromium] Shows the clients which are controlled by ServiceWorker in DevTools. (Closed)

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

Description

[3/5 chromium] Shows the clients which are controlled by ServiceWorker in DevTools. This cl changes ServiceWorkerVersion::GetInfo() to fill the infromation about the controllee in ServiceWorkerVersionInfo. And ServiceWorkerHandler sends it to DevTools. DevTools will shows it in ServiceWorkersView after https://codereview.chromium.org/1164583002/. This cl changes ServiceWorkerHostMsg_ProviderCreated message to pass not only the frame IDs of the SW controlled documents, but also the Shared Worker route IDs of the SW controlled Shared Workers. The frame IDs and the Shared Worker route IDs are used to get DevToolsAgentHost in ServiceWorkerHandler. Screenshot: https://code.google.com/p/chromium/issues/detail?id=466871#c65 1/5 chromium: https://codereview.chromium.org/1160133002/ 2/5 blink: https://codereview.chromium.org/1151993003/ 3/5 chromium: This cl. 4/5 blink: https://codereview.chromium.org/1164583002/ 5/5 chromium: https://codereview.chromium.org/1143363009/ BUG=466871 Committed: https://crrev.com/bcbc8a511277a134eda362b1961940819de827b2 Cr-Commit-Position: refs/heads/master@{#334981}

Patch Set 1 #

Patch Set 2 : use DevToolsAgentHost ID for ClientId #

Patch Set 3 : diff from https://codereview.chromium.org/1160133002/ #

Patch Set 4 : s/Client/Target/ #

Patch Set 5 : rebase and s/focus/activate/ #

Patch Set 6 : fix tests #

Patch Set 7 : #

Total comments: 12

Patch Set 8 : incorporated nhiroki's comment #

Total comments: 8

Patch Set 9 : incorporated nhiroki's comment #

Total comments: 4

Patch Set 10 : #

Patch Set 11 : rebase #

Total comments: 14

Patch Set 12 : incorporated dcheng's comment #

Total comments: 2

Patch Set 13 : incorporated dcheng's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -48 lines) Patch
M content/browser/devtools/protocol/service_worker_handler.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/service_worker_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +62 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +28 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_context_observer.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_watcher.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_watcher.cc View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_info.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_info.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +9 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +23 lines, -13 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -7 lines 0 comments Download
M content/renderer/shared_worker/embedded_shared_worker_stub.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (10 generated)
horo
nhiroki@ Could you please review this?
5 years, 6 months ago (2015-06-02 03:17:00 UTC) #2
horo
On 2015/06/02 03:17:00, horo wrote: > nhiroki@ > Could you please review this? Sorry. I'm ...
5 years, 6 months ago (2015-06-03 08:32:02 UTC) #3
horo
On 2015/06/03 08:32:02, horo wrote: > On 2015/06/02 03:17:00, horo wrote: > > nhiroki@ > ...
5 years, 6 months ago (2015-06-10 07:53:33 UTC) #9
horo
On 2015/06/10 07:53:33, horo wrote: > On 2015/06/03 08:32:02, horo wrote: > > On 2015/06/02 ...
5 years, 6 months ago (2015-06-12 01:36:52 UTC) #10
kinuko
On 2015/06/12 01:36:52, horo wrote: > On 2015/06/10 07:53:33, horo wrote: > > On 2015/06/03 ...
5 years, 6 months ago (2015-06-12 02:06:54 UTC) #12
nhiroki
Looks good overall. https://codereview.chromium.org/1149383004/diff/220001/content/browser/devtools/protocol/service_worker_handler.cc File content/browser/devtools/protocol/service_worker_handler.cc (right): https://codereview.chromium.org/1149383004/diff/220001/content/browser/devtools/protocol/service_worker_handler.cc#newcode99 content/browser/devtools/protocol/service_worker_handler.cc:99: } nit: {} is not necessary ...
5 years, 6 months ago (2015-06-12 02:11:27 UTC) #13
nhiroki
On 2015/06/12 02:11:27, nhiroki wrote: > https://codereview.chromium.org/1149383004/diff/220001/content/browser/service_worker/service_worker_provider_host.cc#newcode94 > content/browser/service_worker/service_worker_provider_host.cc:94: > provider_type_ = SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER; > (I'm ...
5 years, 6 months ago (2015-06-12 02:33:21 UTC) #14
horo
Thank you https://codereview.chromium.org/1149383004/diff/220001/content/browser/devtools/protocol/service_worker_handler.cc File content/browser/devtools/protocol/service_worker_handler.cc (right): https://codereview.chromium.org/1149383004/diff/220001/content/browser/devtools/protocol/service_worker_handler.cc#newcode99 content/browser/devtools/protocol/service_worker_handler.cc:99: } On 2015/06/12 02:11:27, nhiroki wrote: > ...
5 years, 6 months ago (2015-06-12 04:19:19 UTC) #15
nhiroki
https://codereview.chromium.org/1149383004/diff/240001/content/browser/service_worker/service_worker_info.cc File content/browser/service_worker/service_worker_info.cc (right): https://codereview.chromium.org/1149383004/diff/240001/content/browser/service_worker/service_worker_info.cc#newcode12 content/browser/service_worker/service_worker_info.cc:12: ServiceWorkerVersionInfo::ClientInfo::ClientInfo() Is this ctor used? https://codereview.chromium.org/1149383004/diff/240001/content/browser/service_worker/service_worker_info.cc#newcode15 content/browser/service_worker/service_worker_info.cc:15: shared_worker_route_id(MSG_ROUTING_NONE) { ...
5 years, 6 months ago (2015-06-12 05:48:02 UTC) #16
horo
https://codereview.chromium.org/1149383004/diff/240001/content/browser/service_worker/service_worker_info.cc File content/browser/service_worker/service_worker_info.cc (right): https://codereview.chromium.org/1149383004/diff/240001/content/browser/service_worker/service_worker_info.cc#newcode12 content/browser/service_worker/service_worker_info.cc:12: ServiceWorkerVersionInfo::ClientInfo::ClientInfo() On 2015/06/12 05:48:01, nhiroki wrote: > Is this ...
5 years, 6 months ago (2015-06-12 08:45:43 UTC) #17
nhiroki
LGTM with nits https://codereview.chromium.org/1149383004/diff/260001/content/browser/devtools/protocol/service_worker_handler.cc File content/browser/devtools/protocol/service_worker_handler.cc (right): https://codereview.chromium.org/1149383004/diff/260001/content/browser/devtools/protocol/service_worker_handler.cc#newcode221 content/browser/devtools/protocol/service_worker_handler.cc:221: default: This switch-case covers all types. ...
5 years, 6 months ago (2015-06-12 09:07:47 UTC) #18
horo
https://codereview.chromium.org/1149383004/diff/260001/content/browser/devtools/protocol/service_worker_handler.cc File content/browser/devtools/protocol/service_worker_handler.cc (right): https://codereview.chromium.org/1149383004/diff/260001/content/browser/devtools/protocol/service_worker_handler.cc#newcode221 content/browser/devtools/protocol/service_worker_handler.cc:221: default: On 2015/06/12 09:07:47, nhiroki wrote: > This switch-case ...
5 years, 6 months ago (2015-06-12 09:23:47 UTC) #19
horo
pfeldman@ Please review content/browser/devtools/protocol/service_worker_handler.*. dcheng@ Please review content/common/service_worker/service_worker_messages.h.
5 years, 6 months ago (2015-06-12 09:27:17 UTC) #21
pfeldman
devtools lgtm
5 years, 6 months ago (2015-06-13 06:53:23 UTC) #22
horo
dcheng@ Could you please review content/common/service_worker/service_worker_messages.h?
5 years, 6 months ago (2015-06-16 07:58:06 UTC) #23
dcheng
Sorry I'll look at this first thing in the morning. On Tue, Jun 16, 2015, ...
5 years, 6 months ago (2015-06-16 08:36:55 UTC) #24
dcheng
Also, can you elaborate the CL description? Is it the case that Devtools couldn't inspect ...
5 years, 6 months ago (2015-06-17 02:57:31 UTC) #25
horo
> Also, can you elaborate the CL description? Is it the case that Devtools > ...
5 years, 6 months ago (2015-06-17 07:37:05 UTC) #26
dcheng
lgtm with a nit https://codereview.chromium.org/1149383004/diff/320001/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/1149383004/diff/320001/content/browser/service_worker/service_worker_provider_host.cc#newcode34 content/browser/service_worker/service_worker_provider_host.cc:34: ServiceWorkerClientInfo FocusOnUIThread(int render_process_id, int route_id) ...
5 years, 6 months ago (2015-06-17 23:21:13 UTC) #27
horo
Thank you! https://codereview.chromium.org/1149383004/diff/320001/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/1149383004/diff/320001/content/browser/service_worker/service_worker_provider_host.cc#newcode34 content/browser/service_worker/service_worker_provider_host.cc:34: ServiceWorkerClientInfo FocusOnUIThread(int render_process_id, int route_id) { On ...
5 years, 6 months ago (2015-06-17 23:51:07 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149383004/340001
5 years, 6 months ago (2015-06-18 00:05:53 UTC) #31
commit-bot: I haz the power
Committed patchset #13 (id:340001)
5 years, 6 months ago (2015-06-18 02:00:40 UTC) #32
commit-bot: I haz the power
5 years, 6 months ago (2015-06-18 02:01:42 UTC) #33
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/bcbc8a511277a134eda362b1961940819de827b2
Cr-Commit-Position: refs/heads/master@{#334981}

Powered by Google App Engine
This is Rietveld 408576698