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

Side by Side Diff: content/browser/pepper_helper.cc

Issue 11360052: Add a 'NACL' plugin type to PepperMessageFilter so we can block private APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_message_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/pepper_helper.h" 5 #include "content/public/browser/pepper_helper.h"
6 6
7 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 7 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
8 #include "ipc/ipc_channel_proxy.h" 8 #include "ipc/ipc_channel_proxy.h"
9 #include "net/base/host_resolver.h" 9 #include "net/base/host_resolver.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 void EnablePepperSupportForChannel(IPC::ChannelProxy* channel, 13 void EnablePepperSupportForChannel(IPC::ChannelProxy* channel,
piman 2012/11/01 23:34:41 nit: I never realized this was for NaCl only. Shou
bbudge 2012/11/01 23:49:44 See comment.
14 net::HostResolver* host_resolver) { 14 net::HostResolver* host_resolver) {
15 channel->AddFilter( 15 channel->AddFilter(
16 new PepperMessageFilter(PepperMessageFilter::PLUGIN, host_resolver)); 16 new PepperMessageFilter(PepperMessageFilter::NACL, host_resolver));
17 } 17 }
18 18
19 } // namespace content 19 } // namespace content
20 20
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698