Adding MimeHandlerView.
This GuestView type would be used to render out of process pdf through extension.
This introduces BrowserPluginDelegate in content/renderer,
because we need a way to create a MimeHandlerView guest (extensions/ concept)
from BrowserPlugin (content/ concept).
MimeHandlerView is behind --enable-mime-handler-view flag.
BUG=303491
Test=Apply http://crrev.com/392813003/ on top of this CL,
Launch chrome with --out-of-process-pdf flag and --enable-mime-handler-view flag
Navigate to a PDF
Check PDF is served using BrowserPlugin, probably easier to see process associated with the BrowserPlugin from Chrome's task manager.
Review URL: https://codereview.chromium.org/376033002
Cr-Commit-Position: refs/heads/master@{#293613}
diff --git a/content/public/renderer/content_renderer_client.cc b/content/public/renderer/content_renderer_client.cc
index 6ca2fcc7..bb5ffaa 100644
--- a/content/public/renderer/content_renderer_client.cc
+++ b/content/public/renderer/content_renderer_client.cc
@@ -190,4 +190,10 @@
return false;
}
+BrowserPluginDelegate* ContentRendererClient::CreateBrowserPluginDelegate(
+ RenderFrame* render_frame,
+ const std::string& mime_type) {
+ return NULL;
+}
+
} // namespace content