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

Unified Diff: extensions/browser/extension_message_filter.h

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: Address comment from kenrb@ Created 6 years, 3 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
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extension_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_message_filter.h
diff --git a/extensions/browser/extension_message_filter.h b/extensions/browser/extension_message_filter.h
index ac4caaf06efeffdb8a49441e49c2128ed62ba73c..8abb39f679bdd1bff86b282726ddad53a65196bc 100644
--- a/extensions/browser/extension_message_filter.h
+++ b/extensions/browser/extension_message_filter.h
@@ -22,6 +22,7 @@ class DictionaryValue;
namespace content {
class BrowserContext;
+class WebContents;
}
namespace extensions {
@@ -64,6 +65,10 @@ class ExtensionMessageFilter : public content::BrowserMessageFilter {
int element_instance_id,
int guest_instance_id,
const base::DictionaryValue& attach_params);
+ void OnExtensionCreateMimeHandlerViewGuest(int render_frame_id,
+ const std::string& url,
+ const std::string& mime_type,
+ int element_instance_id);
void OnExtensionRemoveLazyListener(const std::string& extension_id,
const std::string& event_name);
void OnExtensionAddFilteredListener(const std::string& extension_id,
@@ -86,6 +91,13 @@ class ExtensionMessageFilter : public content::BrowserMessageFilter {
int routing_id,
const ExtensionHostMsg_Request_Params& params);
+ // Runs on UI thread.
+ void MimeHandlerViewGuestCreatedCallback(int element_instance_id,
+ int embedder_render_process_id,
+ int embedder_render_frame_id,
+ const std::string& src,
+ content::WebContents* web_contents);
+
const int render_process_id_;
// Should only be accessed on the UI thread.
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extension_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698