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

Issue 10984094: Hook up PpapiPermissions in more places. (Closed)

Created:
8 years, 2 months ago by brettw
Modified:
8 years, 2 months ago
Reviewers:
bbudge
CC:
chromium-reviews, joi+watch-content_chromium.org, native-client-reviews_googlegroups.com, darin-cc_chromium.org
Visibility:
Public.

Description

Hook up PpapiPermissions in more places. This doesn't actually do much more checking of the permissions, but it should wire it up everywhere we'll need it. It will also at least only return public interfaces via GetInterface in the proxy now unless other bits are supplied. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=159729

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -93 lines) Patch
A + chrome/browser/nacl_host/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pepper_flash.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/pepper/ppb_nacl_private_impl.cc View 1 2 chunks +9 lines, -3 lines 0 comments Download
A + chrome/test/ppapi/DEPS View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/ppapi/ppapi_test.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/pepper_plugin_registry.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M content/ppapi_plugin/plugin_process_dispatcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/ppapi_plugin/plugin_process_dispatcher.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.h View 2 chunks +4 lines, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 chunks +12 lines, -4 lines 0 comments Download
M content/renderer/browser_plugin/old/guest_to_embedder_channel.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/dispatcher.h View 3 chunks +6 lines, -5 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M ppapi/proxy/host_dispatcher.h View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/host_dispatcher.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ppapi/proxy/interface_list.h View 1 2 3 4 5 3 chunks +33 lines, -5 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 8 chunks +64 lines, -31 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_main_nacl.cc View 2 chunks +12 lines, -4 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 2 chunks +5 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.h View 2 chunks +9 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.cc View 1 chunk +23 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 4 chunks +6 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_flash_menu_proxy.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_flash_message_loop_proxy.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppapi_permissions.h View 1 2 3 2 chunks +28 lines, -3 lines 0 comments Download
M ppapi/shared_impl/ppapi_permissions.cc View 1 2 3 3 chunks +20 lines, -4 lines 0 comments Download
A ppapi/shared_impl/ppapi_switches.h View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A + ppapi/shared_impl/ppapi_switches.cc View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M webkit/plugins/plugin_switches.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M webkit/plugins/plugin_switches.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
brettw
8 years, 2 months ago (2012-09-28 22:18:58 UTC) #1
brettw
+John for content/public addition.
8 years, 2 months ago (2012-09-28 22:19:45 UTC) #2
jam
https://codereview.chromium.org/10984094/diff/4001/content/public/common/pepper_permissions_config.cc File content/public/common/pepper_permissions_config.cc (right): https://codereview.chromium.org/10984094/diff/4001/content/public/common/pepper_permissions_config.cc#newcode24 content/public/common/pepper_permissions_config.cc:24: original_perms.GetBits() | additional_permissions); i'm not sure I follow, why ...
8 years, 2 months ago (2012-09-28 23:15:16 UTC) #3
brettw
I didn't use to have this file in this patch but I found myself doing ...
8 years, 2 months ago (2012-09-30 02:32:27 UTC) #4
brettw
Oh, I also wanted to minimize the number of places where we assume that permissions ...
8 years, 2 months ago (2012-09-30 02:33:47 UTC) #5
bbudge
LGTM http://codereview.chromium.org/10984094/diff/4001/chrome/renderer/pepper/ppb_nacl_private_impl.cc File chrome/renderer/pepper/ppb_nacl_private_impl.cc (right): http://codereview.chromium.org/10984094/diff/4001/chrome/renderer/pepper/ppb_nacl_private_impl.cc#newcode202 chrome/renderer/pepper/ppb_nacl_private_impl.cc:202: PP_Bool StartPpapiProxy(PP_Instance instance) { This is called by ...
8 years, 2 months ago (2012-10-01 17:32:01 UTC) #6
jam
On 2012/09/30 02:32:27, brettw wrote: > I didn't use to have this file in this ...
8 years, 2 months ago (2012-10-01 18:25:52 UTC) #7
brettw
John: that's a good idea, I'll move the command line flag from webkit/plugins to ppapi.
8 years, 2 months ago (2012-10-01 19:16:39 UTC) #8
brettw
8 years, 2 months ago (2012-10-01 23:04:48 UTC) #9
I addressed the other stuff.

http://codereview.chromium.org/10984094/diff/4001/chrome/renderer/pepper/ppb_...
File chrome/renderer/pepper/ppb_nacl_private_impl.cc (right):

http://codereview.chromium.org/10984094/diff/4001/chrome/renderer/pepper/ppb_...
chrome/renderer/pepper/ppb_nacl_private_impl.cc:202: PP_Bool
StartPpapiProxy(PP_Instance instance) {
We also need to hook this up in the browser process. Let's do that in a separate
pass.

http://codereview.chromium.org/10984094/diff/4001/ppapi/proxy/ppb_flash_proxy.cc
File ppapi/proxy/ppb_flash_proxy.cc (right):

http://codereview.chromium.org/10984094/diff/4001/ppapi/proxy/ppb_flash_proxy...
ppapi/proxy/ppb_flash_proxy.cc:92: return false;
That would work and would be fine with just this one function. I was worried
about having potentially more functions and doing a bunch of plumbing. This
seemed a bit cleaner (a dispatcher has permissions, and you use the permissions
API to access it).

Powered by Google App Engine
This is Rietveld 408576698