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

Unified Diff: content/browser/plugin_service_impl.cc

Issue 11772005: Implement a prototype to render cross-site iframes in a separate process from their parent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing Task Manager code and fixing issues raised by Charlie. Created 7 years, 11 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: content/browser/plugin_service_impl.cc
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
index 2cd2eb16f94dd83f7952e49e1f4fe5ec459f2db5..5ba7d74ff8f66fdcad41226fb984a9d4027c5e1f 100644
--- a/content/browser/plugin_service_impl.cc
+++ b/content/browser/plugin_service_impl.cc
@@ -147,10 +147,25 @@ void PluginServiceImpl::Init() {
RegisterPepperPlugins();
+ // Register MIME type to support WebView component.
Charlie Reis 2013/01/18 05:37:07 Great. Can you add a similar --site-per-process p
nasko 2013/01/18 19:09:42 Done.
+ const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kSitePerProcess)) {
+ webkit::WebPluginInfo webview_plugin(
+ ASCIIToUTF16("WebView Tag"),
+ FilePath(FILE_PATH_LITERAL("")),
+ ASCIIToUTF16("1.2.3.4"),
+ ASCIIToUTF16("Browser Plugin."));
+ webview_plugin.type = webkit::WebPluginInfo::PLUGIN_TYPE_NPAPI;
+ webkit::WebPluginMimeType webview_plugin_mime_type;
+ webview_plugin_mime_type.mime_type = "application/browser-plugin";
+ webview_plugin_mime_type.file_extensions.push_back("*");
+ webview_plugin.mime_types.push_back(webview_plugin_mime_type);
+ RegisterInternalPlugin(webview_plugin, true);
+ }
+
GetContentClient()->AddNPAPIPlugins(plugin_list_);
// Load any specified on the command line as well.
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
FilePath path = command_line->GetSwitchValuePath(switches::kLoadPlugin);
if (!path.empty())
AddExtraPluginPath(path);

Powered by Google App Engine
This is Rietveld 408576698