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

Issue 252633003: Introduce worker_devtools_agent_route_id for EmbeddedWorker. (Closed)

Created:
6 years, 8 months ago by horo
Modified:
6 years, 7 months ago
Reviewers:
kinuko, michaeln, jam, nasko
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Introduce worker_devtools_agent_route_id for EmbeddedWorker. worker_devtools_agent_route_id is created with RenderProcessHostImpl::GetNextRoutingIDForProcess(). The worker_devtools_agent_route_id is sent to the renderer wrapped in EmbeddedWorkerMsg_StartWorker message and used to call DevToolsClientMsg_DispatchOnInspectorFrontend and DevToolsHostMsg_SaveAgentRuntimeState in EmbeddedWorkerContextClient. These messages will be handled by SharedWorkerDevToolsManager::WorkerDevToolsAgentHost in the browser process. BUG=358657 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267173

Patch Set 1 #

Total comments: 2

Patch Set 2 : Create NextRoutingIDCallback from widget_helper_ in RenderProcessHostImpl. Rename worker_route_id to worker_devtools_agent_route_id and change the order. #

Total comments: 2

Patch Set 3 : Fix unit tests failure #

Total comments: 3

Patch Set 4 : rebase #

Patch Set 5 : RenderProcessHostImpl::GetNextRoutingIDForProcess #

Total comments: 4

Patch Set 6 : incorporated kinuko's comment #

Total comments: 2

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Remove RenderProcessHostImpl::GetNextRoutingIDForProcess #

Patch Set 9 : rebase #

Patch Set 10 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -55 lines) Patch
M content/browser/service_worker/embedded_worker_instance.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -1 line 0 comments Download
M content/browser/service_worker/embedded_worker_instance.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -6 lines 0 comments Download
M content/browser/service_worker/embedded_worker_registry.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/embedded_worker_registry.cc View 1 2 3 4 5 6 7 8 9 5 chunks +21 lines, -8 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -9 lines 0 comments Download
M content/common/service_worker/embedded_worker_messages.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -5 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 3 chunks +5 lines, -1 line 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 3 chunks +16 lines, -1 line 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -5 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.cc View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -13 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
horo
kinuko@ Could you please review?
6 years, 8 months ago (2014-04-25 02:25:26 UTC) #1
michaeln
https://codereview.chromium.org/252633003/diff/1/content/browser/service_worker/embedded_worker_registry.cc File content/browser/service_worker/embedded_worker_registry.cc (right): https://codereview.chromium.org/252633003/diff/1/content/browser/service_worker/embedded_worker_registry.cc#newcode45 content/browser/service_worker/embedded_worker_registry.cc:45: new EmbeddedWorkerMsg_StartWorker(*worker_route_id, Can we not route/identify based on the ...
6 years, 8 months ago (2014-04-25 02:53:14 UTC) #2
horo
https://codereview.chromium.org/252633003/diff/1/content/browser/service_worker/embedded_worker_registry.cc File content/browser/service_worker/embedded_worker_registry.cc (right): https://codereview.chromium.org/252633003/diff/1/content/browser/service_worker/embedded_worker_registry.cc#newcode45 content/browser/service_worker/embedded_worker_registry.cc:45: new EmbeddedWorkerMsg_StartWorker(*worker_route_id, On 2014/04/25 02:53:15, michaeln wrote: > Can ...
6 years, 8 months ago (2014-04-25 04:34:43 UTC) #3
kinuko
On 2014/04/25 04:34:43, horo wrote: > https://codereview.chromium.org/252633003/diff/1/content/browser/service_worker/embedded_worker_registry.cc > File content/browser/service_worker/embedded_worker_registry.cc (right): > > https://codereview.chromium.org/252633003/diff/1/content/browser/service_worker/embedded_worker_registry.cc#newcode45 > ...
6 years, 8 months ago (2014-04-25 10:37:06 UTC) #4
horo
On 2014/04/25 04:34:43, horo wrote: > https://codereview.chromium.org/252633003/diff/1/content/browser/service_worker/embedded_worker_registry.cc > File content/browser/service_worker/embedded_worker_registry.cc (right): > > https://codereview.chromium.org/252633003/diff/1/content/browser/service_worker/embedded_worker_registry.cc#newcode45 > ...
6 years, 8 months ago (2014-04-25 10:39:31 UTC) #5
kinuko
https://codereview.chromium.org/252633003/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.h File content/browser/service_worker/service_worker_dispatcher_host.h (right): https://codereview.chromium.org/252633003/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.h#newcode34 content/browser/service_worker/service_worker_dispatcher_host.h:34: const base::Callback<int(void)>& next_routing_id_callback); The new parameter needs a descriptive ...
6 years, 8 months ago (2014-04-25 13:56:57 UTC) #6
michaeln
Thnx, now i see why it must be in an id-space that shared with others. ...
6 years, 8 months ago (2014-04-25 19:23:46 UTC) #7
michaeln
Ah... how it's arranged in snapshot 3 is much nicer then 1! https://codereview.chromium.org/252633003/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.h File content/browser/service_worker/service_worker_dispatcher_host.h ...
6 years, 8 months ago (2014-04-25 19:29:49 UTC) #8
michaeln
https://codereview.chromium.org/252633003/diff/60001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/252633003/diff/60001/content/browser/renderer_host/render_process_host_impl.cc#newcode766 content/browser/renderer_host/render_process_host_impl.cc:766: base::Bind(&RenderWidgetHelper::GetNextRoutingID, widget_helper_)); Here's a thought? Define a new static ...
6 years, 8 months ago (2014-04-25 20:10:33 UTC) #9
michaeln
Also hust noticing there's also a static RenderProcessHost* FromID(int render_process_id) method. Anyway, it looks like ...
6 years, 8 months ago (2014-04-25 20:26:50 UTC) #10
horo
GetNextRouteIDForProcess is a good idea! RenderProcessHost::FromID must be called on UI thread. So I added ...
6 years, 8 months ago (2014-04-26 06:33:21 UTC) #11
kinuko
Didn't know we have a convenient static method to get RenderWidgetHelper that can be called ...
6 years, 7 months ago (2014-04-28 04:31:29 UTC) #12
horo
https://codereview.chromium.org/252633003/diff/160001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/252633003/diff/160001/content/browser/renderer_host/render_process_host_impl.cc#newcode472 content/browser/renderer_host/render_process_host_impl.cc:472: RenderWidgetHelper* helper = On 2014/04/28 04:31:29, kinuko wrote: > ...
6 years, 7 months ago (2014-04-28 04:51:22 UTC) #13
kinuko
lgtm https://codereview.chromium.org/252633003/diff/90016/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/252633003/diff/90016/content/browser/renderer_host/render_process_host_impl.h#newcode223 content/browser/renderer_host/render_process_host_impl.h:223: // Gets the next available routing id of ...
6 years, 7 months ago (2014-04-28 07:09:52 UTC) #14
horo
https://codereview.chromium.org/252633003/diff/90016/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/252633003/diff/90016/content/browser/renderer_host/render_process_host_impl.h#newcode223 content/browser/renderer_host/render_process_host_impl.h:223: // Gets the next available routing id of the ...
6 years, 7 months ago (2014-04-28 07:29:41 UTC) #15
michaeln
thnx for nix'ing the routeidcloser plumbing before nix'age: (+138 lines, -35 lines) after nix'age: (+82 ...
6 years, 7 months ago (2014-04-29 00:24:13 UTC) #16
horo
sky@ Could you please review content/browser/renderer_host/render_process_host_impl.*?
6 years, 7 months ago (2014-04-29 00:47:43 UTC) #17
horo
nasko@ Could you please review embedded_worker_messages.h?
6 years, 7 months ago (2014-04-29 00:48:24 UTC) #18
sky
Sorry, I'm not familiar with RenderWidgetHelper. Maybe John? sky->jam
6 years, 7 months ago (2014-04-29 04:17:38 UTC) #19
jam
lgtm with comment: inline the RPH method into the calling site https://codereview.chromium.org/252633003/diff/190001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): ...
6 years, 7 months ago (2014-04-29 06:28:22 UTC) #20
horo
https://codereview.chromium.org/252633003/diff/190001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/252633003/diff/190001/content/browser/renderer_host/render_process_host_impl.h#newcode226 content/browser/renderer_host/render_process_host_impl.h:226: static int GetNextRoutingIDForProcess(int render_process_id); On 2014/04/29 06:28:22, jam wrote: ...
6 years, 7 months ago (2014-04-29 06:54:38 UTC) #21
nasko
IPC LGTM
6 years, 7 months ago (2014-04-29 14:33:02 UTC) #22
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-04-29 17:02:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/252633003/250001
6 years, 7 months ago (2014-04-29 17:03:26 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 17:03:45 UTC) #25
commit-bot: I haz the power
Failed to apply patch for content/browser/service_worker/embedded_worker_instance.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-04-29 17:03:46 UTC) #26
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-04-29 23:04:54 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/252633003/290001
6 years, 7 months ago (2014-04-29 23:07:51 UTC) #28
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 7 months ago (2014-04-29 23:11:10 UTC) #29
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-04-30 01:13:02 UTC) #30
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 7 months ago (2014-04-30 01:13:03 UTC) #31
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-04-30 01:24:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/252633003/350001
6 years, 7 months ago (2014-04-30 01:27:16 UTC) #33
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 7 months ago (2014-04-30 01:39:43 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 01:41:06 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-04-30 01:41:06 UTC) #36
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-04-30 02:39:23 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/252633003/370001
6 years, 7 months ago (2014-04-30 02:40:02 UTC) #38
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 7 months ago (2014-04-30 02:41:09 UTC) #39
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-04-30 03:21:25 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/252633003/390001
6 years, 7 months ago (2014-04-30 03:22:10 UTC) #41
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 10:59:17 UTC) #42
Message was sent while issue was closed.
Change committed as 267173

Powered by Google App Engine
This is Rietveld 408576698