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

Issue 449043002: [DevTools] Make DevTools clients talk directly to DevToolsAgentHost instead of using DevToolsManage… (Closed)

Created:
6 years, 4 months ago by dgozman
Modified:
6 years, 4 months ago
CC:
chromium-reviews, tzik, tburkard+watch_chromium.org, aandrey+blink_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, vsevik, jam, darin-cc_chromium.org, jochen+watch_chromium.org, devtools-reviews_chromium.org, chromium-apps-reviews_chromium.org, michaeln, jsbell+serviceworker_chromium.org, nhiroki, gavinp+prer_chromium.org, paulirish+reviews_chromium.org, alecflett+watch_chromium.org, davidben+watch_chromium.org, tfarina, serviceworker-reviews, yurys, dominich+watch_chromium.org, kinuko+serviceworker, horo+watch_chromium.org, pfeldman
Project:
chromium
Visibility:
Public.

Description

[DevTools] Make DevTools clients talk directly to DevToolsAgentHost instead of using DevToolsManager. Previously, client used methods on DevToolsManager passing |this| to most of them. Instead, it should hold a scoped_refptr to inspected DevToolsAgentHost and talk to it directly. This creates a single clean entry point for the client, and allows in the future to handle browser-wide protocol messages and debug multiple hosts at once. BUG=401073 TBR=kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290236

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 23

Patch Set 3 : Fixed mac compile and debugger api #

Patch Set 4 : Review comments addressed #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : review comments fixed #

Patch Set 7 : rebased #

Patch Set 8 : rebased #

Patch Set 9 : fixed DetachAllClients #

Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -683 lines) Patch
M apps/app_window_registry.cc View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/devtools/chrome_devtools_manager_delegate.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_sanity_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/devtools/devtools_ui_bindings.h View 1 2 3 4 5 7 chunks +16 lines, -7 lines 0 comments Download
M chrome/browser/devtools/devtools_ui_bindings.cc View 1 2 3 4 5 6 chunks +39 lines, -16 lines 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 3 4 5 6 8 chunks +7 lines, -23 lines 0 comments Download
M chrome/browser/extensions/api/debugger/debugger_api.cc View 1 2 3 4 5 6 10 chunks +22 lines, -23 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 4 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_action_context_menu_controller_browsertest.mm View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.cc View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/inspect_ui.cc View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/ui/webui/interstitials/interstitial_ui_browsertest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.h View 1 2 3 4 5 6 1 chunk +15 lines, -21 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +105 lines, -8 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.cc View 1 2 3 4 5 5 chunks +46 lines, -42 lines 0 comments Download
M content/browser/devtools/devtools_manager_impl.h View 2 chunks +6 lines, -74 lines 0 comments Download
M content/browser/devtools/devtools_manager_impl.cc View 1 chunk +10 lines, -161 lines 0 comments Download
M content/browser/devtools/devtools_manager_unittest.cc View 1 2 3 4 5 6 7 8 10 chunks +29 lines, -49 lines 0 comments Download
M content/browser/devtools/embedded_worker_devtools_agent_host.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -5 lines 0 comments Download
M content/browser/devtools/embedded_worker_devtools_manager.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/devtools/embedded_worker_devtools_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/devtools/embedded_worker_devtools_manager_unittest.cc View 1 2 3 4 5 6 7 9 chunks +24 lines, -28 lines 0 comments Download
M content/browser/devtools/forwarding_agent_host.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/forwarding_agent_host.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/devtools/ipc_devtools_agent_host.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/ipc_devtools_agent_host.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/render_view_devtools_agent_host.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/render_view_devtools_agent_host.cc View 1 2 3 4 5 6 7 8 7 chunks +7 lines, -9 lines 0 comments Download
M content/browser/devtools/renderer_overrides_handler_browsertest.cc View 1 2 3 4 5 6 4 chunks +12 lines, -15 lines 0 comments Download
M content/browser/devtools/tethering_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_internals_ui.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/devtools_agent_host.h View 1 2 3 4 5 6 3 chunks +20 lines, -0 lines 0 comments Download
A content/public/browser/devtools_agent_host_client.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
D content/public/browser/devtools_client_host.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -45 lines 0 comments Download
D content/public/browser/devtools_manager.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -65 lines 0 comments Download
M content/shell/browser/shell.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/browser/shell_devtools_frontend.h View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M content/shell/browser/shell_devtools_frontend.cc View 1 2 3 4 5 6 5 chunks +8 lines, -11 lines 0 comments Download
M content/shell/browser/webkit_test_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
pfeldman
https://codereview.chromium.org/449043002/diff/20001/content/public/browser/devtools_agent_host.h File content/public/browser/devtools_agent_host.h (right): https://codereview.chromium.org/449043002/diff/20001/content/public/browser/devtools_agent_host.h#newcode33 content/public/browser/devtools_agent_host.h:33: class Client { It would be great if Detach ...
6 years, 4 months ago (2014-08-07 14:41:58 UTC) #1
pfeldman
https://codereview.chromium.org/449043002/diff/20001/chrome/browser/devtools/devtools_ui_bindings.h File chrome/browser/devtools/devtools_ui_bindings.h (right): https://codereview.chromium.org/449043002/diff/20001/chrome/browser/devtools/devtools_ui_bindings.h#newcode68 chrome/browser/devtools/devtools_ui_bindings.h:68: content::DevToolsAgentHost* agent_host() { return agent_host_.get(); } Lets not expose ...
6 years, 4 months ago (2014-08-07 15:40:30 UTC) #2
dgozman
PTAL https://codereview.chromium.org/449043002/diff/20001/chrome/browser/devtools/devtools_ui_bindings.h File chrome/browser/devtools/devtools_ui_bindings.h (right): https://codereview.chromium.org/449043002/diff/20001/chrome/browser/devtools/devtools_ui_bindings.h#newcode68 chrome/browser/devtools/devtools_ui_bindings.h:68: content::DevToolsAgentHost* agent_host() { return agent_host_.get(); } On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 16:51:53 UTC) #3
pfeldman
lgtm https://codereview.chromium.org/449043002/diff/80001/content/public/browser/devtools_agent_host.h File content/public/browser/devtools_agent_host.h (right): https://codereview.chromium.org/449043002/diff/80001/content/public/browser/devtools_agent_host.h#newcode82 content/public/browser/devtools_agent_host.h:82: virtual void DispatchOnInspectorBackend(const std::string& message) = 0; I ...
6 years, 4 months ago (2014-08-07 17:31:15 UTC) #4
dgozman
@jam: Take a look at content, especially content/public please. I'm removing DevToolsManager and DevToolsClientHost in ...
6 years, 4 months ago (2014-08-07 18:30:13 UTC) #5
jam
lgtm with nit https://codereview.chromium.org/449043002/diff/80001/content/public/browser/devtools_agent_host.h File content/public/browser/devtools_agent_host.h (right): https://codereview.chromium.org/449043002/diff/80001/content/public/browser/devtools_agent_host.h#newcode27 content/public/browser/devtools_agent_host.h:27: class Client { nit: move this ...
6 years, 4 months ago (2014-08-08 01:23:28 UTC) #6
dgozman
https://codereview.chromium.org/449043002/diff/80001/content/public/browser/devtools_agent_host.h File content/public/browser/devtools_agent_host.h (right): https://codereview.chromium.org/449043002/diff/80001/content/public/browser/devtools_agent_host.h#newcode27 content/public/browser/devtools_agent_host.h:27: class Client { On 2014/08/08 01:23:28, jam wrote: > ...
6 years, 4 months ago (2014-08-08 11:51:56 UTC) #7
dgozman
TBR'ing kalman@ for apps/ and extensions/.
6 years, 4 months ago (2014-08-08 12:06:08 UTC) #8
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 4 months ago (2014-08-08 17:06:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/449043002/140001
6 years, 4 months ago (2014-08-08 17:07:55 UTC) #10
commit-bot: I haz the power
Change committed as 288452
6 years, 4 months ago (2014-08-08 22:46:25 UTC) #11
pfeldman
A revert of this CL has been created in https://codereview.chromium.org/467653002/ by pfeldman@chromium.org. The reason for ...
6 years, 4 months ago (2014-08-12 12:28:43 UTC) #12
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 4 months ago (2014-08-18 09:59:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/449043002/160001
6 years, 4 months ago (2014-08-18 10:00:05 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 12:31:50 UTC) #15
Message was sent while issue was closed.
Committed patchset #9 (160001) as 290236

Powered by Google App Engine
This is Rietveld 408576698