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

Issue 251653003: Introduces DevToolsManagerDelegate. (Closed)

Created:
6 years, 8 months ago by horo
Modified:
6 years, 7 months ago
Reviewers:
kinuko, michaeln, jam, pfeldman
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, 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

Introduces DevToolsManagerDelegate. The DevToolsManagerDelegate will be used to open DevToolsWindow from ServiceWorkerInternalsUI(chrome://serviceworker-internals/). BUG=358657 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270047

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Add RegisterStatusChangeCallback and GetRunningServiceWorkerInfo to ServiceWorkerContext. #

Patch Set 4 : rename worker_route_id to worker_devtools_agent_route_id #

Total comments: 9

Patch Set 5 : Stop using CallbackList #

Total comments: 2

Patch Set 6 : rebase #

Total comments: 12

Patch Set 7 : rebase #

Patch Set 8 : incorporated michaeln's comment #

Patch Set 9 : #include <vector> #

Total comments: 3

Patch Set 10 : Register OpenDevToolsWindowForWorkerCallback to DevToolsManager #

Total comments: 2

Patch Set 11 : Add InspectWorker() to WebContents, WebContentsImpl, WebContentsDelegate and Browser. #

Total comments: 2

Patch Set 12 : Introduces ContentBrowserClient::InspectWorker() #

Patch Set 13 : Introduce DevToolsManagerDelegate #

Total comments: 5

Patch Set 14 : fix compile error #

Patch Set 15 : incorporated pfeldman's comment #

Total comments: 2

Patch Set 16 : remove profile and add DISALLOW_COPY_AND_ASSIGN #

Patch Set 17 : remove explicit #

Patch Set 18 : Fix CloudPrintProxyPolicyStartupTest failure #

Total comments: 10

Patch Set 19 : incorporated jam's comment #

Patch Set 20 : remove devtools_manager.h #

Patch Set 21 : rebase and add forward declaration of BrowserContext in devtools_manager_impl.h #

Total comments: 2

Patch Set 22 : remove forward declaration of DevToolsAgentHost in chrome_devtools_manager_delegate.h #

Total comments: 2

Patch Set 23 : bool IsWorker() const #

Patch Set 24 : fix android biuld error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -1 line) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/devtools/chrome_devtools_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/devtools/chrome_devtools_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/chrome_debugger.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +10 lines, -1 line 0 comments Download
M content/browser/devtools/embedded_worker_devtools_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/devtools_agent_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
A content/public/browser/devtools_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (0 generated)
horo
kinuko@ Could you please review?
6 years, 8 months ago (2014-04-25 02:56:58 UTC) #1
jam
note: the whole reason we have webui implementations in content is so that webuis for ...
6 years, 8 months ago (2014-04-25 05:02:08 UTC) #2
horo
On 2014/04/25 05:02:08, jam wrote: > note: the whole reason we have webui implementations in ...
6 years, 8 months ago (2014-04-25 09:31:55 UTC) #3
jam
On 2014/04/25 09:31:55, horo wrote: > On 2014/04/25 05:02:08, jam wrote: > > note: the ...
6 years, 8 months ago (2014-04-25 21:26:03 UTC) #4
michaeln
not a full review, a preliminary look https://codereview.chromium.org/251653003/diff/60001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/251653003/diff/60001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode22 content/browser/service_worker/service_worker_context_wrapper.cc:22: ServiceWorkerContextWrapper::~ServiceWorkerContextWrapper() { ...
6 years, 8 months ago (2014-04-25 22:09:14 UTC) #5
horo
https://codereview.chromium.org/251653003/diff/60001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/251653003/diff/60001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode22 content/browser/service_worker/service_worker_context_wrapper.cc:22: ServiceWorkerContextWrapper::~ServiceWorkerContextWrapper() { On 2014/04/25 22:09:14, michaeln wrote: > I ...
6 years, 8 months ago (2014-04-26 08:00:45 UTC) #6
horo
On 2014/04/25 21:26:03, jam wrote: > On 2014/04/25 09:31:55, horo wrote: > > On 2014/04/25 ...
6 years, 8 months ago (2014-04-26 08:01:43 UTC) #7
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-04-30 11:08:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/251653003/170001
6 years, 7 months ago (2014-04-30 11:09:08 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 11:09:09 UTC) #10
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-04-30 11:09:09 UTC) #11
michaeln
https://codereview.chromium.org/251653003/diff/130001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/251653003/diff/130001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode182 content/browser/service_worker/service_worker_context_wrapper.cc:182: status_change_callbacks_[i].Run(); callbacks could be removed or added while running ...
6 years, 7 months ago (2014-05-01 02:52:06 UTC) #12
horo
https://codereview.chromium.org/251653003/diff/130001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/251653003/diff/130001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode182 content/browser/service_worker/service_worker_context_wrapper.cc:182: status_change_callbacks_[i].Run(); On 2014/05/01 02:52:07, michaeln wrote: > callbacks could ...
6 years, 7 months ago (2014-05-01 04:52:31 UTC) #13
michaeln
https://codereview.chromium.org/251653003/diff/250001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/251653003/diff/250001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode172 content/browser/service_worker/service_worker_context_wrapper.cc:172: void ServiceWorkerContextWrapper::OnVersionStateChanged(int64 version_id) { does the devtools use case ...
6 years, 7 months ago (2014-05-05 21:01:15 UTC) #14
pfeldman
> +pfeldman for his thoughts: is there a way for content to tell chrome to ...
6 years, 7 months ago (2014-05-06 20:54:44 UTC) #15
horo
I changed the goal. I tried to show "Inspect" button of SherviceWorker in chrome://inspect. But ...
6 years, 7 months ago (2014-05-07 14:43:30 UTC) #16
pfeldman
https://codereview.chromium.org/251653003/diff/270001/content/public/browser/devtools_manager.h File content/public/browser/devtools_manager.h (right): https://codereview.chromium.org/251653003/diff/270001/content/public/browser/devtools_manager.h#newcode66 content/public/browser/devtools_manager.h:66: virtual void RegisterOpenDevToolsWindowForWorkerCallback( It does not look too pretty. ...
6 years, 7 months ago (2014-05-07 16:01:29 UTC) #17
horo
On 2014/05/07 16:01:29, pfeldman wrote: > https://codereview.chromium.org/251653003/diff/270001/content/public/browser/devtools_manager.h > File content/public/browser/devtools_manager.h (right): > > https://codereview.chromium.org/251653003/diff/270001/content/public/browser/devtools_manager.h#newcode66 > ...
6 years, 7 months ago (2014-05-08 04:08:23 UTC) #18
pfeldman
https://codereview.chromium.org/251653003/diff/290001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/251653003/diff/290001/content/public/browser/web_contents.h#newcode597 content/public/browser/web_contents.h:597: virtual void InspectWorker(DevToolsAgentHost* agent_host) = 0; Please don't. I ...
6 years, 7 months ago (2014-05-08 10:26:30 UTC) #19
horo
https://codereview.chromium.org/251653003/diff/290001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/251653003/diff/290001/content/public/browser/web_contents.h#newcode597 content/public/browser/web_contents.h:597: virtual void InspectWorker(DevToolsAgentHost* agent_host) = 0; On 2014/05/08 10:26:30, ...
6 years, 7 months ago (2014-05-08 11:29:19 UTC) #20
jam
I don't understand the latest patchset (11). There's a method in WebContents (presumbly called by ...
6 years, 7 months ago (2014-05-08 16:27:17 UTC) #21
pfeldman
On 2014/05/08 16:27:17, jam wrote: > I don't understand the latest patchset (11). There's a ...
6 years, 7 months ago (2014-05-08 17:21:12 UTC) #22
horo
Sorry. I didn't understand what "content_browser_delegate" means. I changed this cl to introduce ContentBrowserClient::InspectWorker() [patchset ...
6 years, 7 months ago (2014-05-09 02:18:16 UTC) #23
jam
On 2014/05/08 17:21:12, pfeldman wrote: > On 2014/05/08 16:27:17, jam wrote: > > I don't ...
6 years, 7 months ago (2014-05-09 17:15:41 UTC) #24
pfeldman
Chatted with John about this. We agreed upon the following plan: - Introduce DevToolsManagerDelegate in ...
6 years, 7 months ago (2014-05-09 17:46:47 UTC) #25
horo
On 2014/05/09 17:46:47, pfeldman wrote: > Chatted with John about this. We agreed upon the ...
6 years, 7 months ago (2014-05-12 06:22:59 UTC) #26
pfeldman
This looks much better. A couple of nits below. https://codereview.chromium.org/251653003/diff/330001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/251653003/diff/330001/content/public/browser/content_browser_client.h#newcode641 content/public/browser/content_browser_client.h:641: ...
6 years, 7 months ago (2014-05-12 06:38:23 UTC) #27
horo
https://codereview.chromium.org/251653003/diff/330001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/251653003/diff/330001/content/public/browser/content_browser_client.h#newcode641 content/public/browser/content_browser_client.h:641: virtual DevToolsManagerDelegate* CreateDevToolsManagerDelegate( On 2014/05/12 06:38:24, pfeldman wrote: > ...
6 years, 7 months ago (2014-05-12 07:51:37 UTC) #28
pfeldman
Two nits, otherwise devtools lgtm https://codereview.chromium.org/251653003/diff/390001/chrome/browser/devtools/devtools_manager_delegate_impl.h File chrome/browser/devtools/devtools_manager_delegate_impl.h (right): https://codereview.chromium.org/251653003/diff/390001/chrome/browser/devtools/devtools_manager_delegate_impl.h#newcode27 chrome/browser/devtools/devtools_manager_delegate_impl.h:27: Profile* profile_; - remove ...
6 years, 7 months ago (2014-05-12 08:30:54 UTC) #29
horo
https://codereview.chromium.org/251653003/diff/390001/chrome/browser/devtools/devtools_manager_delegate_impl.h File chrome/browser/devtools/devtools_manager_delegate_impl.h (right): https://codereview.chromium.org/251653003/diff/390001/chrome/browser/devtools/devtools_manager_delegate_impl.h#newcode27 chrome/browser/devtools/devtools_manager_delegate_impl.h:27: Profile* profile_; On 2014/05/12 08:30:55, pfeldman wrote: > - ...
6 years, 7 months ago (2014-05-12 09:17:10 UTC) #30
horo
jam@ Could you please review content/public/browser/*?
6 years, 7 months ago (2014-05-12 09:17:35 UTC) #31
jam
https://codereview.chromium.org/251653003/diff/490001/chrome/browser/chrome_content_browser_client.h File chrome/browser/chrome_content_browser_client.h (right): https://codereview.chromium.org/251653003/diff/490001/chrome/browser/chrome_content_browser_client.h#newcode282 chrome/browser/chrome_content_browser_client.h:282: OVERRIDE; nit: don't start a line with OVERRIDE https://codereview.chromium.org/251653003/diff/490001/chrome/browser/devtools/devtools_manager_delegate_impl.h ...
6 years, 7 months ago (2014-05-12 15:01:22 UTC) #32
horo
https://codereview.chromium.org/251653003/diff/490001/chrome/browser/chrome_content_browser_client.h File chrome/browser/chrome_content_browser_client.h (right): https://codereview.chromium.org/251653003/diff/490001/chrome/browser/chrome_content_browser_client.h#newcode282 chrome/browser/chrome_content_browser_client.h:282: OVERRIDE; On 2014/05/12 15:01:23, jam wrote: > nit: don't ...
6 years, 7 months ago (2014-05-12 16:21:47 UTC) #33
jam
lgtm https://codereview.chromium.org/251653003/diff/550001/chrome/browser/devtools/chrome_devtools_manager_delegate.h File chrome/browser/devtools/chrome_devtools_manager_delegate.h (right): https://codereview.chromium.org/251653003/diff/550001/chrome/browser/devtools/chrome_devtools_manager_delegate.h#newcode13 chrome/browser/devtools/chrome_devtools_manager_delegate.h:13: class DevToolsAgentHost; nit: not needed by definition since ...
6 years, 7 months ago (2014-05-13 02:46:41 UTC) #34
horo
https://codereview.chromium.org/251653003/diff/550001/chrome/browser/devtools/chrome_devtools_manager_delegate.h File chrome/browser/devtools/chrome_devtools_manager_delegate.h (right): https://codereview.chromium.org/251653003/diff/550001/chrome/browser/devtools/chrome_devtools_manager_delegate.h#newcode13 chrome/browser/devtools/chrome_devtools_manager_delegate.h:13: class DevToolsAgentHost; On 2014/05/13 02:46:42, jam wrote: > nit: ...
6 years, 7 months ago (2014-05-13 03:17:16 UTC) #35
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:17:25 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/251653003/570001
6 years, 7 months ago (2014-05-13 03:18:30 UTC) #37
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:20:45 UTC) #38
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:20:53 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/251653003/570001
6 years, 7 months ago (2014-05-13 03:23:09 UTC) #40
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:25:20 UTC) #41
kinuko
Looks like the model's drastically changed from the initial patch. looks good to me too ...
6 years, 7 months ago (2014-05-13 03:48:55 UTC) #42
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:49:26 UTC) #43
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:49:34 UTC) #44
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:51:35 UTC) #45
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:51:51 UTC) #46
horo
https://codereview.chromium.org/251653003/diff/570001/content/browser/devtools/devtools_agent_host_impl.h File content/browser/devtools/devtools_agent_host_impl.h (right): https://codereview.chromium.org/251653003/diff/570001/content/browser/devtools/devtools_agent_host_impl.h#newcode56 content/browser/devtools/devtools_agent_host_impl.h:56: virtual bool IsWorker() OVERRIDE; On 2014/05/13 03:48:56, kinuko wrote: ...
6 years, 7 months ago (2014-05-13 03:55:36 UTC) #47
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-05-13 03:55:46 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/251653003/590001
6 years, 7 months ago (2014-05-13 03:56:00 UTC) #49
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-05-13 05:38:15 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/251653003/590001
6 years, 7 months ago (2014-05-13 05:39:18 UTC) #51
horo
The CQ bit was checked by horo@chromium.org
6 years, 7 months ago (2014-05-13 05:41:45 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/251653003/620001
6 years, 7 months ago (2014-05-13 05:42:07 UTC) #53
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 07:50:04 UTC) #54
Message was sent while issue was closed.
Change committed as 270047

Powered by Google App Engine
This is Rietveld 408576698