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

Issue 1029523002: DevTools: Enable network emulation on Service Workers (Closed)

Created:
5 years, 9 months ago by Kunihiko Sakamoto
Modified:
5 years, 9 months ago
Reviewers:
pfeldman, nasko
CC:
chromium-reviews, jam, yurys, darin-cc_chromium.org, devtools-reviews_chromium.org, kinuko+watch, aandrey+blink_chromium.org, horo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Enable network emulation on Service Workers This patch moves the functionality of RenderFrameDevToolsAgentHost::DispatchProtocolMessage() to DevToolsAgentHostImpl so that SW agent host can handle the emulateNetworkConditions message. BUG=444820 Committed: https://crrev.com/2d99237c6d9167c0822cdf046a9fc2bd99cc8517 Cr-Commit-Position: refs/heads/master@{#321898}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -50 lines) Patch
M content/browser/devtools/devtools_agent_host_impl.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.cc View 1 2 3 3 chunks +29 lines, -1 line 0 comments Download
M content/browser/devtools/forwarding_agent_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/forwarding_agent_host.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/devtools/ipc_devtools_agent_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/ipc_devtools_agent_host.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.h View 1 4 chunks +0 lines, -4 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 1 5 chunks +0 lines, -38 lines 0 comments Download
M content/public/browser/devtools_agent_host.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
Kunihiko Sakamoto
PTAL
5 years, 9 months ago (2015-03-23 07:50:36 UTC) #2
pfeldman
https://codereview.chromium.org/1029523002/diff/1/content/browser/devtools/service_worker_devtools_agent_host.cc File content/browser/devtools/service_worker_devtools_agent_host.cc (right): https://codereview.chromium.org/1029523002/diff/1/content/browser/devtools/service_worker_devtools_agent_host.cc#newcode103 content/browser/devtools/service_worker_devtools_agent_host.cc:103: void ServiceWorkerDevToolsAgentHost::DispatchProtocolMessage( Lets have this implemented in the devtools_agent_host_impl ...
5 years, 9 months ago (2015-03-23 09:05:25 UTC) #3
pfeldman
A couple of nits and it is good to go. https://codereview.chromium.org/1029523002/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/1029523002/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc#newcode232 ...
5 years, 9 months ago (2015-03-23 09:59:01 UTC) #4
Kunihiko Sakamoto
Thank you for the review! https://codereview.chromium.org/1029523002/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/1029523002/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc#newcode232 content/browser/devtools/devtools_agent_host_impl.cc:232: return false; On 2015/03/23 ...
5 years, 9 months ago (2015-03-23 10:23:58 UTC) #5
pfeldman
lgtm https://codereview.chromium.org/1029523002/diff/40001/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/1029523002/diff/40001/content/browser/devtools/devtools_agent_host_impl.cc#newcode247 content/browser/devtools/devtools_agent_host_impl.cc:247: if (protocol_handler_->HandleOptionalCommand(command.Pass())) nit: return protocol_handler_->HandleOptionalCommand(command.Pass());
5 years, 9 months ago (2015-03-23 10:31:37 UTC) #6
Kunihiko Sakamoto
+nasko for content/public https://codereview.chromium.org/1029523002/diff/40001/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/1029523002/diff/40001/content/browser/devtools/devtools_agent_host_impl.cc#newcode247 content/browser/devtools/devtools_agent_host_impl.cc:247: if (protocol_handler_->HandleOptionalCommand(command.Pass())) On 2015/03/23 10:31:37, pfeldman ...
5 years, 9 months ago (2015-03-23 10:45:51 UTC) #8
pfeldman
On 2015/03/23 10:45:51, Kunihiko Sakamoto wrote: > +nasko for content/public I think TBR-ing void->bool is ...
5 years, 9 months ago (2015-03-23 12:12:06 UTC) #9
nasko
content/public/browser/devtools_agent_host.h LGTM
5 years, 9 months ago (2015-03-23 14:14:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1029523002/60001
5 years, 9 months ago (2015-03-23 23:25:01 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-23 23:48:14 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 23:49:02 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2d99237c6d9167c0822cdf046a9fc2bd99cc8517
Cr-Commit-Position: refs/heads/master@{#321898}

Powered by Google App Engine
This is Rietveld 408576698