Index: chrome/browser/plugins/plugin_info_message_filter.h |
diff --git a/chrome/browser/plugins/plugin_info_message_filter.h b/chrome/browser/plugins/plugin_info_message_filter.h |
index c9987c5573e4306d32363541be5dc79deeb55e24..6f57fc2ff4f9a589178d9f46b67d41f283ddbee0 100644 |
--- a/chrome/browser/plugins/plugin_info_message_filter.h |
+++ b/chrome/browser/plugins/plugin_info_message_filter.h |
@@ -26,6 +26,7 @@ class Profile; |
namespace content { |
class ResourceContext; |
+class WebContents; |
struct WebPluginInfo; |
} |
@@ -64,6 +65,7 @@ class PluginInfoMessageFilter : public content::BrowserMessageFilter { |
void MaybeGrantAccess(const ChromeViewHostMsg_GetPluginInfo_Status& status, |
const base::FilePath& path) const; |
+ int render_process_id() { return render_process_id_; } |
private: |
int render_process_id_; |
content::ResourceContext* resource_context_; |
@@ -87,6 +89,26 @@ class PluginInfoMessageFilter : public content::BrowserMessageFilter { |
virtual ~PluginInfoMessageFilter(); |
+ // Creates a MimeHandlerViewGuest on UI thread. |
+ void CreateGuestOnUI( |
+ Profile* profile, |
+ int render_process_id, |
+ GURL top_origin_url, |
+ scoped_ptr<ChromeViewHostMsg_GetPluginInfo_Output> output, |
+ IPC::Message* reply_msg); |
+ |
+ void GuestCreatedOnUICallback( |
+ scoped_ptr<ChromeViewHostMsg_GetPluginInfo_Output> output, |
+ IPC::Message* reply_msg, |
+ content::WebContents* guest_web_contents); |
+ |
+ // Callback called when we have done creating MimeHandlerViewGuest on |
+ // UI thread. |
+ // This callback is called on IO thread. |
+ void GuestCreatedOnIO( |
+ const scoped_ptr<ChromeViewHostMsg_GetPluginInfo_Output>& output, |
+ IPC::Message* reply_msg); |
+ |
void OnGetPluginInfo(int render_frame_id, |
const GURL& url, |
const GURL& top_origin_url, |
@@ -114,6 +136,7 @@ class PluginInfoMessageFilter : public content::BrowserMessageFilter { |
#endif |
Context context_; |
+ Profile* profile_; |
base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_; |