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

Unified Diff: chrome/browser/plugins/plugin_info_message_filter.h

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: sync @tott Created 6 years, 5 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698