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

Issue 21540: Add developer tools message forwarding to browser (Closed)

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

Description

Developer tools messages are forwarded as wrapped IPC::Messages(previously they were represented as int type+string body). I stole IPC::Message serialization code from jam's CL(http://codereview.chromium.org/20413). jam: please look at message forwarding code. When tools messages are send from browser to renderer they are also wrapped(unlike worker messages which are unwrapped and sent as is). It allows to describe developer tools messages in its own file instead of putting all of them into render_messages_internal.h brettw: please check if it's OK to have ForwardMessageToToolsClient in WebContentsView Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10455

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 6

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 8

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 4

Patch Set 12 : '' #

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -26 lines) Patch
M chrome/browser/browser.scons View 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/browser.vcproj View 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/debugger/debugger.scons View 5 6 7 8 9 10 11 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/debugger/debugger.vcproj View 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/debugger/dev_tools_view.h View 7 1 chunk +79 lines, -0 lines 0 comments Download
A chrome/browser/debugger/dev_tools_view.cc View 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/debugger/dev_tools_window.h View 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/debugger/dev_tools_window.cc View 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/dev_tools_ui.h View 8 9 10 11 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/dev_tools_ui.cc View 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui.h View 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui_contents.h View 10 11 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui_contents.cc View 8 9 10 11 12 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/interstitial_page.cc View 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_mac.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_win.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_win.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/common/ipc_message_utils.h View 2 3 4 5 6 7 8 9 10 11 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -23 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
yurys
11 years, 10 months ago (2009-02-20 16:02:24 UTC) #1
Søren Thygesen Gjesse
LGTM
11 years, 10 months ago (2009-02-20 16:14:36 UTC) #2
jam
http://codereview.chromium.org/21540/diff/39/1029 File chrome/browser/debugger/tools_view.cc (right): http://codereview.chromium.org/21540/diff/39/1029#newcode33 Line 33: new ViewMsg_ForwardToToolsClient(routing_id, message)); per my earlier comment, this ...
11 years, 10 months ago (2009-02-20 21:04:57 UTC) #3
yurys
- Removed ToolsContent from the change: ViewMsg_SetupToolsClient is now sent from RenderViewHost when renderer created ...
11 years, 10 months ago (2009-02-24 18:03:23 UTC) #4
brettw
This is a lot better, thanks. One think that crossed my mind that you should ...
11 years, 10 months ago (2009-02-24 18:34:16 UTC) #5
yurys
On 2009/02/24 18:34:16, brettw wrote: > This is a lot better, thanks. > > One ...
11 years, 10 months ago (2009-02-24 18:52:19 UTC) #6
yurys
http://codereview.chromium.org/21540/diff/5001/5015 File chrome/browser/renderer_host/render_view_host.h (right): http://codereview.chromium.org/21540/diff/5001/5015#newcode620 Line 620: int inspected_process_id_; On 2009/02/24 18:34:16, brettw wrote: > ...
11 years, 10 months ago (2009-02-24 18:52:27 UTC) #7
brettw
This patch looks fine to me from the RenderViewHost level. I didn't check the views ...
11 years, 10 months ago (2009-02-24 18:55:34 UTC) #8
jam
ipc stuff looks good to me (please update the description)
11 years, 10 months ago (2009-02-24 22:08:08 UTC) #9
yurys
Brett, I discovered that to support loading dev tools from a URL with chrome-ui:// scheme ...
11 years, 10 months ago (2009-02-25 15:43:56 UTC) #10
brettw
LGTM. I have a few style suggestions before you check in (you don't need to ...
11 years, 10 months ago (2009-02-25 17:34:24 UTC) #11
yurys
http://codereview.chromium.org/21540/diff/4060/5123 File chrome/browser/dom_ui/dev_tools_ui.cc (right): http://codereview.chromium.org/21540/diff/4060/5123#newcode12 Line 12: std::string url = DOMUIContents::GetScheme(); On 2009/02/25 17:34:24, brettw ...
11 years, 10 months ago (2009-02-25 18:01:17 UTC) #12
yurys
brettw: I added DOMUI::RendererCreated method and moved dev tools specific messag passinf from RenderViewHost::CreateRenderView there. ...
11 years, 10 months ago (2009-02-25 18:34:33 UTC) #13
brettw
LGTM http://codereview.chromium.org/21540/diff/5215/5236 File chrome/browser/dom_ui/dev_tools_ui.h (right): http://codereview.chromium.org/21540/diff/5215/5236#newcode20 Line 20: virtual void RendererCreated(RenderViewHost* render_view_host); Since this is ...
11 years, 10 months ago (2009-02-25 18:40:09 UTC) #14
yurys
11 years, 10 months ago (2009-02-26 08:11:04 UTC) #15
http://codereview.chromium.org/21540/diff/5215/5236
File chrome/browser/dom_ui/dev_tools_ui.h (right):

http://codereview.chromium.org/21540/diff/5215/5236#newcode20
Line 20: virtual void RendererCreated(RenderViewHost* render_view_host);
On 2009/02/25 18:40:09, brettw wrote:
> Since this is part of the DOMUI implementation, I wouldn't put a blank line
> above this. We usually group overridden functions from a single source
together
> like this.

Done.

http://codereview.chromium.org/21540/diff/5215/5241
File chrome/browser/dom_ui/dom_ui.h (right):

http://codereview.chromium.org/21540/diff/5215/5241#newcode25
Line 25: virtual void RendererCreated(RenderViewHost* render_view_host) {}
On 2009/02/25 18:40:09, brettw wrote:
> When you sync, you'll notice I renamed RendererCreated to RenderViewCreated to
> be more accurate. You should change all of your names as well, including this
> new one.

Done.

Powered by Google App Engine
This is Rietveld 408576698