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

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: 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 3c8254fa1d3e396818ff939dda40ed133e27d069..7b7a086ff4a4f7b8b323b21448b59dd6b1391f65 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -84,6 +84,10 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
embedder_render_process_host_ = render_process_host;
}
+ void set_embedder_web_contents(WebContents* web_contents) {
+ embedder_web_contents_ = web_contents;
+ }
+
bool visible() const { return visible_; }
// NotificationObserver implementation.
@@ -119,6 +123,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);
@@ -218,6 +224,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
NotificationRegistrar notification_registrar_;
RenderProcessHost* embedder_render_process_host_;
+ WebContents* embedder_web_contents_;
// An identifier that uniquely identifies a browser plugin guest within an
// embedder.
int instance_id_;

Powered by Google App Engine
This is Rietveld 408576698