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

Unified Diff: chrome/browser/nacl_host/nacl_process_host.cc

Issue 11368019: Add support for external out-of-process PPAPI plugins in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | « chrome/browser/nacl_host/nacl_process_host.h ('k') | content/browser/pepper_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/nacl_process_host.cc
===================================================================
--- chrome/browser/nacl_host/nacl_process_host.cc (revision 166155)
+++ chrome/browser/nacl_host/nacl_process_host.cc (working copy)
@@ -35,8 +35,8 @@
#include "chrome/common/render_messages.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_child_process_host.h"
+#include "content/public/browser/browser_ppapi_host.h"
#include "content/public/browser/child_process_data.h"
-#include "content/public/browser/pepper_helper.h"
#include "content/public/common/child_process_host.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_switches.h"
@@ -759,8 +759,12 @@
IPC::Channel::MODE_CLIENT,
&ipc_plugin_listener_,
base::MessageLoopProxy::current()));
- // Enable PPAPI message dispatching to the browser process.
- content::EnablePepperSupportForChannel(
+ // Create the browser ppapi host and enable PPAPI message dispatching to the
+ // browser process.
+ content::BrowserPpapiHost::CreateExternalPluginProcess(
+ process_.get(), // sender
+ permissions_,
+ process_->GetData().handle,
ipc_proxy_channel_.get(),
chrome_render_message_filter_->GetHostResolver(),
chrome_render_message_filter_->render_process_id(),
« no previous file with comments | « chrome/browser/nacl_host/nacl_process_host.h ('k') | content/browser/pepper_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698