Chromium Code Reviews| Index: content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc |
| diff --git a/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc b/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc |
| index fd9a13a29f7a67869694987804b601f9ed335843..ffda51b6c56ce998294da1963222dbe991bd7512 100644 |
| --- a/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc |
| +++ b/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc |
| @@ -10,6 +10,7 @@ |
| #include "content/browser/renderer_host/pepper/pepper_gamepad_host.h" |
| #include "content/browser/renderer_host/pepper/pepper_print_settings_manager.h" |
| #include "content/browser/renderer_host/pepper/pepper_printing_host.h" |
| +#include "content/browser/renderer_host/pepper/pepper_udp_socket_private_host.h" |
| #include "ppapi/host/resource_host.h" |
| #include "ppapi/proxy/ppapi_messages.h" |
| #include "ppapi/shared_impl/ppapi_permissions.h" |
| @@ -44,6 +45,16 @@ scoped_ptr<ResourceHost> ContentBrowserPepperHostFactory::CreateResourceHost( |
| host_, instance, params.pp_resource())); |
| } |
| + // Private interfaces. |
| + if (host_->GetPpapiHost()->permissions().HasPermission( |
| + ppapi::PERMISSION_PRIVATE)) { |
|
dmichael (off chromium)
2012/12/12 23:23:38
This probably won't work for whitelisted NaCl apps
ygorshenin1
2012/12/18 12:07:16
Creation of UDP sockets actually does nothing. All
|
| + switch (message.type()) { |
| + case PpapiHostMsg_UDPSocketPrivate_Create::ID: |
| + return scoped_ptr<ResourceHost>(new PepperUDPSocketPrivateHost( |
| + host_, instance, params.pp_resource())); |
| + } |
| + } |
| + |
| // Dev interfaces. |
| if (GetPermissions().HasPermission(ppapi::PERMISSION_DEV)) { |
| switch (message.type()) { |