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

Issue 24995003: DevTools: Extract target discovery and manipulation from DevToolsHttpHandlerImpl (Closed)

Created:
7 years, 2 months ago by Vladislav Kaznacheev
Modified:
7 years, 2 months ago
CC:
chromium-reviews, vsevik, yurys, joi+watch-content_chromium.org, paulirish+reviews_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Visibility:
Public.

Description

DevTools: Extract target discovery and manipulation from DevToolsHttpHandlerImpl Target discovery has moved into DevToolsHttpHandlerDelegate. The new DevToolsTarget interface is introduced to encapsulate access to target details (id, title, url etc) and manipulation (activate, close, inspect). It is now possible to have an implementation of DevToolsTarget tied to a tab id instead of a RenderViewHost instance (which is the prerequisite for fixing the referenced bug). BUG=272174 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226771

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Added Android implementations #

Total comments: 7

Patch Set 4 : Extracted DevToolsTarget class #

Total comments: 22

Patch Set 5 : Addressed comments #

Patch Set 6 : Fixed clang compile and a minor bug #

Total comments: 10

Patch Set 7 : Addressed comments #

Patch Set 8 : Extracted devtools_agent_host_impl.cc change to another patch #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Patch Set 11 : Fixed json/new handler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+636 lines, -327 lines) Patch
M android_webview/native/aw_dev_tools_server.cc View 1 2 3 4 5 6 3 chunks +67 lines, -12 lines 0 comments Download
M chrome/browser/android/dev_tools_server.cc View 1 2 3 4 5 6 4 chunks +93 lines, -11 lines 0 comments Download
M chrome/browser/devtools/browser_list_tabcontents_provider.h View 1 2 3 4 5 6 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/devtools/browser_list_tabcontents_provider.cc View 1 2 3 4 5 6 4 chunks +191 lines, -39 lines 0 comments Download
M chrome/test/data/devtools/target_list/background.js View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.h View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -23 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.cc View 1 2 3 4 5 6 7 8 9 10 14 chunks +90 lines, -186 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/devtools_http_handler.h View 1 2 3 4 3 chunks +2 lines, -21 lines 0 comments Download
M content/public/browser/devtools_http_handler_delegate.h View 1 2 3 4 5 6 2 chunks +8 lines, -12 lines 0 comments Download
A content/public/browser/devtools_target.h View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 0 comments Download
M content/shell/browser/shell_devtools_delegate.h View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M content/shell/browser/shell_devtools_delegate.cc View 1 2 3 4 5 6 4 chunks +90 lines, -10 lines 0 comments Download
M content/shell/browser/shell_devtools_frontend.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Vladislav Kaznacheev
PTAL
7 years, 2 months ago (2013-09-30 07:10:55 UTC) #1
pfeldman
https://codereview.chromium.org/24995003/diff/6001/content/public/browser/devtools_http_handler_delegate.h File content/public/browser/devtools_http_handler_delegate.h (right): https://codereview.chromium.org/24995003/diff/6001/content/public/browser/devtools_http_handler_delegate.h#newcode40 content/public/browser/devtools_http_handler_delegate.h:40: // Returns true if this delegate supports page thumbnails. ...
7 years, 2 months ago (2013-09-30 12:25:46 UTC) #2
Vladislav Kaznacheev
PTAL
7 years, 2 months ago (2013-10-01 13:42:35 UTC) #3
pfeldman
lgtm https://chromiumcodereview.appspot.com/24995003/diff/11001/chrome/browser/devtools/browser_list_tabcontents_provider.cc File chrome/browser/devtools/browser_list_tabcontents_provider.cc (right): https://chromiumcodereview.appspot.com/24995003/diff/11001/chrome/browser/devtools/browser_list_tabcontents_provider.cc#newcode253 chrome/browser/devtools/browser_list_tabcontents_provider.cc:253: this, indent https://chromiumcodereview.appspot.com/24995003/diff/11001/content/browser/devtools/devtools_http_handler_impl.cc File content/browser/devtools/devtools_http_handler_impl.cc (left): https://chromiumcodereview.appspot.com/24995003/diff/11001/content/browser/devtools/devtools_http_handler_impl.cc#oldcode602 content/browser/devtools/devtools_http_handler_impl.cc:602: ...
7 years, 2 months ago (2013-10-01 14:10:24 UTC) #4
Vladislav Kaznacheev
https://chromiumcodereview.appspot.com/24995003/diff/11001/chrome/browser/devtools/browser_list_tabcontents_provider.cc File chrome/browser/devtools/browser_list_tabcontents_provider.cc (right): https://chromiumcodereview.appspot.com/24995003/diff/11001/chrome/browser/devtools/browser_list_tabcontents_provider.cc#newcode253 chrome/browser/devtools/browser_list_tabcontents_provider.cc:253: this, On 2013/10/01 14:10:24, pfeldman wrote: > indent Done. ...
7 years, 2 months ago (2013-10-01 15:00:16 UTC) #5
Vladislav Kaznacheev
Hello OWNERS, jam@, please review: content/public/browser/devtools_http_handler.h content/public/browser/devtools_http_handler_delegate.h content/public/browser/devtools_target.h (new interface) bulach@, please review: chrome/browser/android/dev_tools_server.cc mnaganov@, ...
7 years, 2 months ago (2013-10-01 15:15:56 UTC) #6
mnaganov (inactive)
Android parts LGTM except for the question about #includes https://chromiumcodereview.appspot.com/24995003/diff/23001/android_webview/native/aw_dev_tools_server.cc File android_webview/native/aw_dev_tools_server.cc (right): https://chromiumcodereview.appspot.com/24995003/diff/23001/android_webview/native/aw_dev_tools_server.cc#newcode18 android_webview/native/aw_dev_tools_server.cc:18: ...
7 years, 2 months ago (2013-10-01 16:15:02 UTC) #7
bulach
lgtm for chrome/browser/android/dev_tools_server.cc
7 years, 2 months ago (2013-10-01 16:44:55 UTC) #8
jam
https://codereview.chromium.org/24995003/diff/23001/content/public/browser/devtools_http_handler_delegate.h File content/public/browser/devtools_http_handler_delegate.h (right): https://codereview.chromium.org/24995003/diff/23001/content/public/browser/devtools_http_handler_delegate.h#newcode13 content/public/browser/devtools_http_handler_delegate.h:13: #include "content/public/browser/devtools_target.h" do you need this or can you ...
7 years, 2 months ago (2013-10-01 17:20:50 UTC) #9
Vladislav Kaznacheev
https://chromiumcodereview.appspot.com/24995003/diff/23001/android_webview/native/aw_dev_tools_server.cc File android_webview/native/aw_dev_tools_server.cc (right): https://chromiumcodereview.appspot.com/24995003/diff/23001/android_webview/native/aw_dev_tools_server.cc#newcode18 android_webview/native/aw_dev_tools_server.cc:18: #include "content/public/browser/navigation_entry.h" We do not. That was copypasta. On ...
7 years, 2 months ago (2013-10-02 10:28:28 UTC) #10
jam
content/public lgtm
7 years, 2 months ago (2013-10-02 16:58:50 UTC) #11
jam
On 2013/10/02 16:58:50, jam wrote: > content/public lgtm and gypi
7 years, 2 months ago (2013-10-02 16:59:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaznacheev@chromium.org/24995003/44001
7 years, 2 months ago (2013-10-02 18:31:38 UTC) #13
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=174182
7 years, 2 months ago (2013-10-02 19:24:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaznacheev@chromium.org/24995003/70001
7 years, 2 months ago (2013-10-03 07:06:19 UTC) #15
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-03 07:28:27 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/24995003/84001
7 years, 2 months ago (2013-10-03 08:15:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaznacheev@chromium.org/24995003/103001
7 years, 2 months ago (2013-10-03 09:08:43 UTC) #18
commit-bot: I haz the power
7 years, 2 months ago (2013-10-03 16:29:08 UTC) #19
Message was sent while issue was closed.
Change committed as 226771

Powered by Google App Engine
This is Rietveld 408576698