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

Issue 50009: Allow different types of devtools client (Closed)

Created:
11 years, 9 months ago by yurys
Modified:
9 years, 7 months ago
Reviewers:
apavlov1, pfeldman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Currently we have two types of devtools UI: Chrome built in developer tools window and remote debugger connected over TCP(apavlov is working on it). To allow DevToolsManager coordinate both types of devtools uniformly their API is extracted into DevToolsClientHost interface. Fix purify errors in DevToolsManager unit tests. BUG=9150 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12274

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 25

Patch Set 3 : '' #

Total comments: 16

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -285 lines) Patch
M chrome/browser/browser.cc View 1 2 3 4 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/debugger/debugger.scons View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/debugger/debugger.vcproj View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/debugger/devtools_client_host.h View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/debugger/devtools_manager.h View 1 2 3 4 1 chunk +44 lines, -64 lines 0 comments Download
M chrome/browser/debugger/devtools_manager.cc View 1 2 3 4 3 chunks +76 lines, -114 lines 0 comments Download
M chrome/browser/debugger/devtools_manager_unittest.cc View 1 2 3 4 3 chunks +54 lines, -57 lines 0 comments Download
M chrome/browser/debugger/devtools_view.h View 1 2 3 4 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/debugger/devtools_view.cc View 1 2 3 4 4 chunks +26 lines, -11 lines 0 comments Download
M chrome/browser/debugger/devtools_window.h View 1 2 3 4 1 chunk +12 lines, -15 lines 0 comments Download
M chrome/browser/debugger/devtools_window_gtk.cc View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/debugger/devtools_window_mac.cc View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/debugger/devtools_window_win.h View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/debugger/devtools_window_win.cc View 1 2 3 4 3 chunks +21 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/purify/unit_tests.exe.gtest.txt View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
yurys
11 years, 9 months ago (2009-03-19 13:11:58 UTC) #1
pfeldman
http://codereview.chromium.org/50009/diff/1001/1002 File chrome/browser/debugger/devtools_client_host.h (right): http://codereview.chromium.org/50009/diff/1001/1002#newcode16 Line 16: // An opaque wrapper around pointer that allows ...
11 years, 9 months ago (2009-03-19 13:58:46 UTC) #2
pfeldman
http://codereview.chromium.org/50009/diff/1001/1013 File chrome/browser/browser.cc (right): http://codereview.chromium.org/50009/diff/1001/1013#newcode952 Line 952: NULL /* Use default factory for developer tools ...
11 years, 9 months ago (2009-03-19 15:50:28 UTC) #3
yurys
Pavel I addressed all your comments. Can you look at the updated version? http://codereview.chromium.org/50009/diff/1001/1002 File ...
11 years, 9 months ago (2009-03-20 15:08:18 UTC) #4
pfeldman
LGTM http://codereview.chromium.org/50009/diff/40/52 File chrome/browser/browser.cc (right): http://codereview.chromium.org/50009/diff/40/52#newcode955 Line 955: DevToolsWindow* window = host->asDevToolsWindow(); style: AsDevToolsWindow http://codereview.chromium.org/50009/diff/40/41 ...
11 years, 9 months ago (2009-03-20 16:48:00 UTC) #5
yurys
11 years, 9 months ago (2009-03-20 16:56:33 UTC) #6
http://codereview.chromium.org/50009/diff/40/52
File chrome/browser/browser.cc (right):

http://codereview.chromium.org/50009/diff/40/52#newcode955
Line 955: DevToolsWindow* window = host->asDevToolsWindow();
On 2009/03/20 16:48:00, pfeldman wrote:
> style: AsDevToolsWindow

Done.

http://codereview.chromium.org/50009/diff/40/41
File chrome/browser/debugger/devtools_client_host.h (right):

http://codereview.chromium.org/50009/diff/40/41#newcode17
Line 17: // are currently two types of clients: devtools windows and TCP socket
debuggers.
On 2009/03/20 16:48:00, pfeldman wrote:
> nit: 80 chars

Done.

http://codereview.chromium.org/50009/diff/40/41#newcode20
Line 20: class CloseListener {
On 2009/03/20 16:48:00, pfeldman wrote:
> style: Constructor and DISALLOW_COPY_AND_ASSIGN required.

Done.

http://codereview.chromium.org/50009/diff/40/41#newcode23
Line 23: virtual ~CloseListener() {}
On 2009/03/20 16:48:00, pfeldman wrote:
> style: declare destructor before methods.

Done.

http://codereview.chromium.org/50009/diff/40/41#newcode27
Line 27: virtual void InspectedTabClosing() = 0;
On 2009/03/20 16:48:00, pfeldman wrote:
> Could you provide docs for the methods?

Done.

http://codereview.chromium.org/50009/diff/40/47
File chrome/browser/debugger/devtools_manager.cc (right):

http://codereview.chromium.org/50009/diff/40/47#newcode73
Line 73: navcontroller_to_client_host_.begin();
On 2009/03/20 16:48:00, pfeldman wrote:
> nit: indent

Done.

http://codereview.chromium.org/50009/diff/40/48
File chrome/browser/debugger/devtools_manager.h (right):

http://codereview.chromium.org/50009/diff/40/48#newcode26
Line 26: // routes messages between developer tools clients and agents. There
are two
Removed that sentence.

On 2009/03/20 16:48:00, pfeldman wrote:
> nit: You mention two types of clients all over the place. If we add another
> type, one would need to update all the docs...

http://codereview.chromium.org/50009/diff/40/46
File chrome/browser/debugger/devtools_view.cc (right):

http://codereview.chromium.org/50009/diff/40/46#newcode72
Line 72: web_contents_->CloseContents();  // destroy the tab and navigation
controller
On 2009/03/20 16:48:00, pfeldman wrote:
> nit: 80chars

Done.

Powered by Google App Engine
This is Rietveld 408576698