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

Unified Diff: content/browser/renderer_host/pepper/content_browser_pepper_host_factory.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: Fix. 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/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 75e3ac464e13eae8981e59ebbd69e8180a51b54e..283ffc1b0f2efad952f3c281f7ec48bf52239624 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/message_filter_host.h"
#include "ppapi/host/ppapi_host.h"
#include "ppapi/host/resource_host.h"
@@ -48,6 +49,17 @@ scoped_ptr<ResourceHost> ContentBrowserPepperHostFactory::CreateResourceHost(
host_, instance, params.pp_resource()));
}
+ // Private interfaces.
+ if (host_->GetPpapiHost()->permissions().HasPermission(
raymes 2013/01/13 20:47:58 Please use GetPermissions() as in the cases below.
ygorshenin1 2013/01/14 08:47:43 Done.
+ ppapi::PERMISSION_PRIVATE) ||
+ message.type() == PpapiHostMsg_UDPSocketPrivate_Create::ID) {
raymes 2013/01/13 20:47:58 This part is unusual and subtle. Can you explain w
ygorshenin1 2013/01/14 08:47:43 Done.
+ 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()) {

Powered by Google App Engine
This is Rietveld 408576698