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

Issue 7729002: Handle the ViewHostMsg_RunFileChooser IPC message which is sent by content(renderer) in RVH and (Closed)

Created:
9 years, 4 months ago by ananta
Modified:
9 years, 4 months ago
Reviewers:
jam
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org
Visibility:
Public.

Description

Handle the ViewHostMsg_RunFileChooser IPC message which is sent by content(renderer) in RVH and invoke the corresponding delegate. ExtensionHosts and TabContents which are RenderViewHost delegates no longer dispatch the ViewHostMsg_RunFileChooser message. Instead this message is handled by overriding the RunFileChooser method in the RenderViewHostDelegate interface. We eventually want to get rid of the pattern of sending IPC messages from content and handling them in chrome and vice versa. BUG=87335 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98141

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -26 lines) Patch
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 3 chunks +11 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_view_host.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 3 chunks +3 lines, -5 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ananta
9 years, 4 months ago (2011-08-24 19:25:45 UTC) #1
jam
I'm confused. If this is only handled by extensions, then why is it sent from ...
9 years, 4 months ago (2011-08-24 20:30:29 UTC) #2
ananta
On 2011/08/24 20:30:29, John Abd-El-Malek wrote: > I'm confused. If this is only handled by ...
9 years, 4 months ago (2011-08-24 20:37:58 UTC) #3
ananta
http://codereview.chromium.org/7729002/diff/4002/content/browser/renderer_host/render_view_host.cc File content/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/7729002/diff/4002/content/browser/renderer_host/render_view_host.cc#newcode725 content/browser/renderer_host/render_view_host.cc:725: On 2011/08/24 20:30:29, John Abd-El-Malek wrote: > why add ...
9 years, 4 months ago (2011-08-24 20:38:05 UTC) #4
jam
On 2011/08/24 20:37:58, ananta wrote: > On 2011/08/24 20:30:29, John Abd-El-Malek wrote: > > I'm ...
9 years, 4 months ago (2011-08-24 21:01:19 UTC) #5
ananta
On 2011/08/24 21:01:19, John Abd-El-Malek wrote: > On 2011/08/24 20:37:58, ananta wrote: > > On ...
9 years, 4 months ago (2011-08-24 21:13:16 UTC) #6
jam
lgtm http://codereview.chromium.org/7729002/diff/7002/content/browser/tab_contents/tab_contents.h File content/browser/tab_contents/tab_contents.h (right): http://codereview.chromium.org/7729002/diff/7002/content/browser/tab_contents/tab_contents.h#newcode512 content/browser/tab_contents/tab_contents.h:512: virtual void RunFileChooser(RenderViewHost* render_view_host, nit: please put this ...
9 years, 4 months ago (2011-08-24 22:42:57 UTC) #7
ananta
9 years, 4 months ago (2011-08-24 22:58:39 UTC) #8
http://codereview.chromium.org/7729002/diff/7002/content/browser/tab_contents...
File content/browser/tab_contents/tab_contents.h (right):

http://codereview.chromium.org/7729002/diff/7002/content/browser/tab_contents...
content/browser/tab_contents/tab_contents.h:512: virtual void
RunFileChooser(RenderViewHost* render_view_host,
On 2011/08/24 22:42:57, John Abd-El-Malek wrote:
> nit: please put this in order at the bottom of the file with the other
> RenderViewHostDelegate methods (I'm not sure why OnmMessageReceived is public,
> but this doesnt need to be)

Moved both methods to the bottom with other RVHD overrides.

Powered by Google App Engine
This is Rietveld 408576698