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

Unified Diff: content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc

Issue 11441012: PPB_UDPSocket_Private is switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. 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/renderer_host/pepper/browser_ppapi_host_impl.cc
diff --git a/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc b/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc
index f572f29d1a9f3746dfcab42ef00ffe5440553553..40e33597b0fe4ff8d394b2f10da9403741cb04dc 100644
--- a/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc
+++ b/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc
@@ -8,6 +8,7 @@
#include "content/browser/trace_message_filter.h"
#include "content/common/pepper_renderer_instance_data.h"
#include "content/public/browser/render_view_host.h"
+#include "content/public/common/process_type.h"
#include "ipc/ipc_message_macros.h"
namespace content {
@@ -28,11 +29,12 @@ BrowserPpapiHost* BrowserPpapiHost::CreateExternalPluginProcess(
FilePath profile_data_directory;
BrowserPpapiHostImpl* browser_ppapi_host =
new BrowserPpapiHostImpl(sender, permissions, plugin_name,
- profile_data_directory);
+ profile_data_directory,
+ PROCESS_TYPE_NACL_LOADER);
browser_ppapi_host->set_plugin_process_handle(plugin_child_process);
channel->AddFilter(
- new PepperMessageFilter(PepperMessageFilter::NACL,
+ new PepperMessageFilter(PROCESS_TYPE_NACL_LOADER,
permissions,
host_resolver,
render_process_id,
@@ -47,11 +49,13 @@ BrowserPpapiHostImpl::BrowserPpapiHostImpl(
IPC::Sender* sender,
const ppapi::PpapiPermissions& permissions,
const std::string& plugin_name,
- const FilePath& profile_data_directory)
+ const FilePath& profile_data_directory,
+ ProcessType plugin_process_type)
: ppapi_host_(new ppapi::host::PpapiHost(sender, permissions)),
plugin_process_handle_(base::kNullProcessHandle),
plugin_name_(plugin_name),
- profile_data_directory_(profile_data_directory) {
+ profile_data_directory_(profile_data_directory),
+ plugin_process_type_(plugin_process_type) {
message_filter_ = new HostMessageFilter(ppapi_host_.get());
ppapi_host_->AddHostFactoryFilter(scoped_ptr<ppapi::host::HostFactory>(
new ContentBrowserPepperHostFactory(this)));

Powered by Google App Engine
This is Rietveld 408576698