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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 11098056: Browser Plugin: Enable File Chooser (<input type="file">) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 9776b59b13d757c3d7ee52f1e65e0264782bf42b..cd1ccec1fef02e470f1d940f3db1e658e0734dda 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -82,12 +82,8 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
guest_hang_timeout_ = timeout;
}
- void set_embedder_render_process_host(
- RenderProcessHost* render_process_host) {
- embedder_render_process_host_ = render_process_host;
- }
- void set_embedder_render_view_host(RenderViewHost* render_view_host) {
- embedder_render_view_host_ = render_view_host;
+ void set_embedder_web_contents(WebContents* web_contents) {
+ embedder_web_contents_ = web_contents;
}
bool visible() const { return visible_; }
@@ -126,6 +122,8 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
const std::string& request_method) OVERRIDE;
virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
virtual void RendererUnresponsive(WebContents* source) OVERRIDE;
+ virtual void RunFileChooser(WebContents* web_contents,
+ const FileChooserParams& params) OVERRIDE;
void UpdateRect(RenderViewHost* render_view_host,
const ViewHostMsg_UpdateRect_Params& params);
@@ -215,9 +213,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
WebContentsImpl* web_contents,
RenderViewHost* render_view_host);
- RenderProcessHost* embedder_render_process_host() {
- return embedder_render_process_host_;
- }
// Returns the identifier that uniquely identifies a browser plugin guest
// within an embedder.
int instance_id() const { return instance_id_; }
@@ -240,8 +235,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
static content::BrowserPluginHostFactory* factory_;
NotificationRegistrar notification_registrar_;
- RenderProcessHost* embedder_render_process_host_;
- RenderViewHost* embedder_render_view_host_;
+ WebContents* embedder_web_contents_;
// An identifier that uniquely identifies a browser plugin guest within an
// embedder.
int instance_id_;
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698