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

Issue 7778010: DevTools: split DevToolsHandler into client and agent handlers (Closed)

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

Description

DevTools handler now handles messages from both client and agent and is created for all new render_view_hosts. This patch moves handling of IPC messages from agent to RenderViewDevToolsAgentHost and handling of client IPC messages to DevToolsWindow. BUG=None TEST=Existing DevTools tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98964

Patch Set 1 #

Patch Set 2 : Added devtool-agent-hanlder #

Patch Set 3 : Added devtools client handler #

Patch Set 4 : Deleted devtools_handler #

Patch Set 5 : Fixed tests compilation #

Patch Set 6 : Merged handlers into agents #

Patch Set 7 : Merged client handler into devtools window #

Patch Set 8 : Removed blank line #

Patch Set 9 : Changed comment in devtools_window.cc #

Total comments: 3

Patch Set 10 : Use private inheritance for observer interfaces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -235 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/debugger/devtools_window.h View 1 2 3 4 5 6 7 8 9 7 chunks +25 lines, -11 lines 0 comments Download
M chrome/browser/debugger/devtools_window.cc View 1 2 3 4 5 6 7 8 11 chunks +74 lines, -26 lines 0 comments Download
M content/browser/debugger/devtools_client_host.h View 1 2 3 4 5 6 1 chunk +0 lines, -18 lines 0 comments Download
M content/browser/debugger/devtools_handler.h View 1 2 3 1 chunk +0 lines, -40 lines 0 comments Download
M content/browser/debugger/devtools_handler.cc View 1 2 3 1 chunk +0 lines, -107 lines 0 comments Download
M content/browser/debugger/devtools_manager.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/debugger/devtools_manager.cc View 1 3 chunks +5 lines, -9 lines 0 comments Download
M content/browser/debugger/devtools_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/debugger/render_view_devtools_agent_host.h View 2 3 4 5 2 chunks +11 lines, -8 lines 0 comments Download
M content/browser/debugger/render_view_devtools_agent_host.cc View 1 2 3 4 5 3 chunks +45 lines, -9 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
yurys
9 years, 3 months ago (2011-08-29 10:37:51 UTC) #1
pfeldman
On Aug 29, 2011 1:37 PM, <yurys@chromium.org> wrote: > > Reviewers: loislo, pfeldman, > > ...
9 years, 3 months ago (2011-08-29 10:46:27 UTC) #2
yurys
On 2011/08/29 10:46:27, pfeldman wrote: > On Aug 29, 2011 1:37 PM, <mailto:yurys@chromium.org> wrote: > ...
9 years, 3 months ago (2011-08-29 11:13:15 UTC) #3
pfeldman
On Aug 29, 2011 2:13 PM, <yurys@chromium.org> wrote: > > On 2011/08/29 10:46:27, pfeldman wrote: ...
9 years, 3 months ago (2011-08-29 11:26:08 UTC) #4
yurys
On 2011/08/29 11:26:08, pfeldman wrote: > On Aug 29, 2011 2:13 PM, <mailto:yurys@chromium.org> wrote: > ...
9 years, 3 months ago (2011-08-29 11:43:04 UTC) #5
pfeldman
On Aug 29, 2011 2:43 PM, <yurys@chromium.org> wrote: > > On 2011/08/29 11:26:08, pfeldman wrote: ...
9 years, 3 months ago (2011-08-29 13:42:18 UTC) #6
yurys
On 2011/08/29 13:42:18, pfeldman wrote: > On Aug 29, 2011 2:43 PM, <mailto:yurys@chromium.org> wrote: > ...
9 years, 3 months ago (2011-08-29 13:45:31 UTC) #7
pfeldman
On Aug 29, 2011 4:45 PM, <yurys@chromium.org> wrote: > > On 2011/08/29 13:42:18, pfeldman wrote: ...
9 years, 3 months ago (2011-08-29 14:05:14 UTC) #8
yurys
Merged IPC handling into RenderViewDevToolsAgentHost and DevToolsWindow. Please take a look.
9 years, 3 months ago (2011-08-31 09:40:46 UTC) #9
pfeldman
lgtm http://codereview.chromium.org/7778010/diff/41/chrome/browser/debugger/devtools_window.h File chrome/browser/debugger/devtools_window.h (right): http://codereview.chromium.org/7778010/diff/41/chrome/browser/debugger/devtools_window.h#newcode40 chrome/browser/debugger/devtools_window.h:40: private RenderViewHostObserver { All other observers use public ...
9 years, 3 months ago (2011-08-31 13:42:53 UTC) #10
yurys
9 years, 3 months ago (2011-08-31 13:59:16 UTC) #11
http://codereview.chromium.org/7778010/diff/41/chrome/browser/debugger/devtoo...
File chrome/browser/debugger/devtools_window.h (right):

http://codereview.chromium.org/7778010/diff/41/chrome/browser/debugger/devtoo...
chrome/browser/debugger/devtools_window.h:40: private RenderViewHostObserver {
On 2011/08/31 13:42:53, pfeldman wrote:
> All other observers use public inheritance, including the DTH you are
removing.
> I'd suggest keeping it public for consistency.

I made NotificationObserver and TabContentsDelegate private ancestors instead.
There is no reason to expose the fact that DevToolsWindow derives from them.

Powered by Google App Engine
This is Rietveld 408576698