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

Issue 12950002: Introduce DevToolsExternalAgentProxy interface (Closed)

Created:
7 years, 9 months ago by Vladislav Kaznacheev
Modified:
7 years, 9 months ago
Reviewers:
jam, pfeldman
CC:
chromium-reviews, vsevik, yurys, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Introduced DevToolsExternalAgentProxy interface for connecting to an agent by means other than IPC (such as network connection). BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190648

Patch Set 1 #

Total comments: 20

Patch Set 2 : Addressed comments #

Total comments: 22

Patch Set 3 : Addressed comments #

Patch Set 4 : Renamed the interface #

Total comments: 8

Patch Set 5 : Addressed comments #

Patch Set 6 : Fixing clang compile #

Patch Set 7 : Moved the delegate class to a separate header file #

Total comments: 8

Patch Set 8 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -42 lines) Patch
M content/browser/devtools/devtools_agent_host_impl.h View 1 2 2 chunks +8 lines, -9 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.cc View 1 2 chunks +0 lines, -26 lines 0 comments Download
A content/browser/devtools/devtools_external_agent_proxy_impl.h View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A content/browser/devtools/devtools_external_agent_proxy_impl.cc View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_manager_unittest.cc View 1 2 3 4 5 6 3 chunks +59 lines, -0 lines 0 comments Download
A content/browser/devtools/ipc_devtools_agent_host.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A content/browser/devtools/ipc_devtools_agent_host.cc View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
M content/browser/devtools/render_view_devtools_agent_host.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/devtools/render_view_devtools_agent_host.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/worker_devtools_manager.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
A content/public/browser/devtools_external_agent_proxy.h View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A content/public/browser/devtools_external_agent_proxy_delegate.h View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Vladislav Kaznacheev
Please take a look at the general approach.
7 years, 9 months ago (2013-03-20 08:19:33 UTC) #1
pfeldman
https://codereview.chromium.org/12950002/diff/1/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/12950002/diff/1/content/browser/devtools/devtools_agent_host_impl.cc#newcode49 content/browser/devtools/devtools_agent_host_impl.cc:49: void DevToolsAgentHostImpl::AgentDisconnected() { I'd leave this as is. https://codereview.chromium.org/12950002/diff/1/content/browser/devtools/devtools_agent_host_impl.h ...
7 years, 9 months ago (2013-03-20 12:35:46 UTC) #2
Vladislav Kaznacheev
PTAL https://codereview.chromium.org/12950002/diff/1/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/12950002/diff/1/content/browser/devtools/devtools_agent_host_impl.cc#newcode49 content/browser/devtools/devtools_agent_host_impl.cc:49: void DevToolsAgentHostImpl::AgentDisconnected() { On 2013/03/20 12:35:46, pfeldman wrote: ...
7 years, 9 months ago (2013-03-20 15:23:20 UTC) #3
pfeldman
https://codereview.chromium.org/12950002/diff/8001/content/browser/devtools/devtools_remote_agent_connector_impl.cc File content/browser/devtools/devtools_remote_agent_connector_impl.cc (right): https://codereview.chromium.org/12950002/diff/8001/content/browser/devtools/devtools_remote_agent_connector_impl.cc#newcode11 content/browser/devtools/devtools_remote_agent_connector_impl.cc:11: class ForwardingDevToolsAgentHost: public content::DevToolsAgentHostImpl { Space before : missing ...
7 years, 9 months ago (2013-03-21 06:24:32 UTC) #4
Vladislav Kaznacheev
PTAL. Still not sure about the new interface name. (Remote)DevToolsAgentProxy? https://codereview.chromium.org/12950002/diff/8001/content/browser/devtools/devtools_remote_agent_connector_impl.cc File content/browser/devtools/devtools_remote_agent_connector_impl.cc (right): https://codereview.chromium.org/12950002/diff/8001/content/browser/devtools/devtools_remote_agent_connector_impl.cc#newcode11 ...
7 years, 9 months ago (2013-03-21 06:55:53 UTC) #5
pfeldman
https://codereview.chromium.org/12950002/diff/22001/content/browser/devtools/devtools_external_agent_proxy_impl.cc File content/browser/devtools/devtools_external_agent_proxy_impl.cc (right): https://codereview.chromium.org/12950002/diff/22001/content/browser/devtools/devtools_external_agent_proxy_impl.cc#newcode33 content/browser/devtools/devtools_external_agent_proxy_impl.cc:33: delegate_->SendMessageToBacked(message); ToBackend https://codereview.chromium.org/12950002/diff/22001/content/browser/devtools/devtools_external_agent_proxy_impl.cc#newcode50 content/browser/devtools/devtools_external_agent_proxy_impl.cc:50: scoped_refptr<DevToolsAgentHost> DevToolsExternalAgentProxyImpl:: scoped_refptr<DevToolsAgentHost> DevToolsExternalAgentProxyImpl::GetAgentHost() { ...
7 years, 9 months ago (2013-03-21 12:18:06 UTC) #6
Vladislav Kaznacheev
https://codereview.chromium.org/12950002/diff/22001/content/browser/devtools/devtools_external_agent_proxy_impl.cc File content/browser/devtools/devtools_external_agent_proxy_impl.cc (right): https://codereview.chromium.org/12950002/diff/22001/content/browser/devtools/devtools_external_agent_proxy_impl.cc#newcode33 content/browser/devtools/devtools_external_agent_proxy_impl.cc:33: delegate_->SendMessageToBacked(message); On 2013/03/21 12:18:06, pfeldman wrote: > ToBackend Done. ...
7 years, 9 months ago (2013-03-21 13:00:41 UTC) #7
Vladislav Kaznacheev
Hi Johh, Please review the new interface in content/public/browser/devtools_external_agent_proxy.h Best regards, Vlad
7 years, 9 months ago (2013-03-21 13:03:39 UTC) #8
jam
On 2013/03/21 13:03:39, Vladislav Kaznacheev wrote: > Hi Johh, > > Please review the new ...
7 years, 9 months ago (2013-03-21 16:46:51 UTC) #9
pfeldman
Here is the context: DevToolsAgentHost(Impl) is everything devtools needs in order to debug something. We ...
7 years, 9 months ago (2013-03-22 16:01:13 UTC) #10
jam
On 2013/03/22 16:01:13, pfeldman wrote: > Here is the context: > > DevToolsAgentHost(Impl) is everything ...
7 years, 9 months ago (2013-03-25 06:21:49 UTC) #11
pfeldman
No, not enough - three additional methods (Attach, Detach and SendMessage) would need to be ...
7 years, 9 months ago (2013-03-25 06:43:31 UTC) #12
Vladislav Kaznacheev
Inheriting from DTAH in Chrome would not really work because the first thing we would ...
7 years, 9 months ago (2013-03-25 10:44:08 UTC) #13
jam
I'm not really following all this. Is there more documentation about what this stuff is ...
7 years, 9 months ago (2013-03-25 16:25:21 UTC) #14
jam
(Pavel explained more over VC, thanks) lgtm https://codereview.chromium.org/12950002/diff/39001/content/browser/devtools/devtools_external_agent_proxy_impl.h File content/browser/devtools/devtools_external_agent_proxy_impl.h (right): https://codereview.chromium.org/12950002/diff/39001/content/browser/devtools/devtools_external_agent_proxy_impl.h#newcode13 content/browser/devtools/devtools_external_agent_proxy_impl.h:13: class CONTENT_EXPORT ...
7 years, 9 months ago (2013-03-25 17:03:48 UTC) #15
Vladislav Kaznacheev
Thanks for the review! https://codereview.chromium.org/12950002/diff/39001/content/browser/devtools/devtools_external_agent_proxy_impl.h File content/browser/devtools/devtools_external_agent_proxy_impl.h (right): https://codereview.chromium.org/12950002/diff/39001/content/browser/devtools/devtools_external_agent_proxy_impl.h#newcode13 content/browser/devtools/devtools_external_agent_proxy_impl.h:13: class CONTENT_EXPORT DevToolsExternalAgentProxyImpl On 2013/03/25 ...
7 years, 9 months ago (2013-03-26 06:11:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaznacheev@chromium.org/12950002/21002
7 years, 9 months ago (2013-03-26 07:07:50 UTC) #17
commit-bot: I haz the power
7 years, 9 months ago (2013-03-26 12:46:46 UTC) #18
Message was sent while issue was closed.
Change committed as 190648

Powered by Google App Engine
This is Rietveld 408576698