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

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

Issue 10815073: Refactoring of new IPC-only pepper implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_message_filter.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/pepper/pepper_message_filter.cc
diff --git a/content/browser/renderer_host/pepper/pepper_message_filter.cc b/content/browser/renderer_host/pepper/pepper_message_filter.cc
index bced66ba56a0de7646b90d7616328aa5ec06e45a..d9dbcdf89934d55f99d07f616df786a4af8cf38b 100644
--- a/content/browser/renderer_host/pepper/pepper_message_filter.cc
+++ b/content/browser/renderer_host/pepper/pepper_message_filter.cc
@@ -76,10 +76,6 @@ PepperMessageFilter::PepperMessageFilter(
: process_type_(type),
process_id_(process_id),
resource_context_(browser_context->GetResourceContext()),
- permissions_(), // Renderer has no PPAPI permissions,
- host_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
- ppapi_host_(ALLOW_THIS_IN_INITIALIZER_LIST(this), &host_factory_,
- permissions_),
host_resolver_(NULL),
next_socket_id_(1) {
DCHECK(type == RENDERER);
@@ -91,15 +87,10 @@ PepperMessageFilter::PepperMessageFilter(
}
PepperMessageFilter::PepperMessageFilter(ProcessType type,
- net::HostResolver* host_resolver,
- const ppapi::PpapiPermissions& perms)
+ net::HostResolver* host_resolver)
: process_type_(type),
process_id_(0),
resource_context_(NULL),
- permissions_(perms),
- host_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
- ppapi_host_(ALLOW_THIS_IN_INITIALIZER_LIST(this), &host_factory_,
- permissions_),
host_resolver_(host_resolver),
next_socket_id_(1),
incognito_(false) {
@@ -124,14 +115,6 @@ void PepperMessageFilter::OverrideThreadForMessage(
bool PepperMessageFilter::OnMessageReceived(const IPC::Message& msg,
bool* message_was_ok) {
-if (process_type_ == PLUGIN) {
- // Handle new-style host messages directly from the plugin. Don't allow
- // renderers to send these messages since they have fewer capabilities for
- // some classes of things than plugins.
- if (ppapi_host_.OnMessageReceived(msg))
- return true;
- }
-
bool handled = true;
IPC_BEGIN_MESSAGE_MAP_EX(PepperMessageFilter, msg, *message_was_ok)
IPC_MESSAGE_HANDLER(PepperMsg_GetLocalTimeZoneOffset,
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_message_filter.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698