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_; |