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

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

Issue 11411357: PPB_HostResolver_Private is switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync, fix. Created 7 years, 10 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 109b254b37ea0088744a0e3f9ec5b60ba7a1eba6..c29c3bbfb474dff88e0b0dc8d4633e3ad8883b9c 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
@@ -8,6 +8,7 @@
#include "content/browser/renderer_host/pepper/pepper_browser_font_singleton_host.h"
#include "content/browser/renderer_host/pepper/pepper_flash_file_message_filter.h"
#include "content/browser/renderer_host/pepper/pepper_gamepad_host.h"
+#include "content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.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"
@@ -71,6 +72,21 @@ scoped_ptr<ResourceHost> ContentBrowserPepperHostFactory::CreateResourceHost(
}
}
+ // HostResolverPrivate interface.
+ //
+ // Permissions for HostResolverPrivate interface will be checked at
+ // the time of the instance's methods calls (because permission
+ // check for HostResolverPrivate can be performed only on the UI
+ // thread). Currently this interface is available only for
+ // whitelisted apps which may not have access to the other private
+ // interfaces.
+ if (message.type() == PpapiHostMsg_HostResolverPrivate_Create::ID) {
brettw 2013/02/11 20:46:58 Can you just group this with the UDPSocket one bel
ygorshenin1 2013/02/11 21:28:53 Done.
+ scoped_refptr<ResourceMessageFilter> host_resolver(
+ new PepperHostResolverPrivateMessageFilter(host_, instance));
+ return scoped_ptr<ResourceHost>(new MessageFilterHost(
+ host_->GetPpapiHost(), instance, params.pp_resource(), host_resolver));
+ }
+
// UDPSocketPrivate interface.
//
// Permissions for UDPSocketPrivate interface will be checked at the

Powered by Google App Engine
This is Rietveld 408576698