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

Issue 16335018: Add NaCl proxies for Pepper Video Source and Destination resources. (Closed)

Created:
7 years, 6 months ago by bbudge
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add NaCl proxies for Pepper Video Source and Destination resources. I need to add whitelist testing to prevent arbitrary NaCl apps from using these resources. BUG=230980 TEST=browser_tests, --gtest_filter="PPAPINaClPNaClTest.Video*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207348

Patch Set 1 #

Patch Set 2 : Don't register APIs twice. #

Total comments: 2

Patch Set 3 : Use simple ImageData format on host side of proxy. #

Patch Set 4 : Create "NaCl style" image data on host side. #

Total comments: 6

Patch Set 5 : Patch ready for review. #

Total comments: 2

Patch Set 6 : Fix Linux (create SIMPLE image data). #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -111 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 1 2 3 4 4 chunks +36 lines, -14 lines 0 comments Download
M content/renderer/pepper/pepper_video_destination_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_video_source_host.cc View 1 2 3 4 5 5 chunks +10 lines, -32 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 2 chunks +24 lines, -25 lines 2 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 2 chunks +11 lines, -11 lines 0 comments Download
M ppapi/proxy/video_source_resource.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/video_source_resource.cc View 1 2 3 4 3 chunks +1 line, -12 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private_no_permissions.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
bbudge
David, can you check that I'm creating the ImageData correctly in video_source_resource.cc?
7 years, 6 months ago (2013-06-03 23:48:33 UTC) #1
dmichael (off chromium)
That chunk looks right to me. I think you may understand this stuff better at ...
7 years, 6 months ago (2013-06-04 17:10:49 UTC) #2
bbudge
https://codereview.chromium.org/16335018/diff/7001/ppapi/proxy/video_source_resource.cc File ppapi/proxy/video_source_resource.cc (right): https://codereview.chromium.org/16335018/diff/7001/ppapi/proxy/video_source_resource.cc#newcode111 ppapi/proxy/video_source_resource.cc:111: frame->image_data = 0; On 2013/06/04 17:10:49, dmichael wrote: > ...
7 years, 6 months ago (2013-06-04 23:46:28 UTC) #3
dmichael (off chromium)
https://codereview.chromium.org/16335018/diff/2016/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/16335018/diff/2016/content/renderer/pepper/pepper_video_source_host.cc#newcode201 content/renderer/pepper/pepper_video_source_host.cc:201: int shmem_key = You should be able to get ...
7 years, 6 months ago (2013-06-05 01:54:42 UTC) #4
bbudge
https://codereview.chromium.org/16335018/diff/2016/ppapi/proxy/video_source_resource.cc File ppapi/proxy/video_source_resource.cc (right): https://codereview.chromium.org/16335018/diff/2016/ppapi/proxy/video_source_resource.cc#newcode110 ppapi/proxy/video_source_resource.cc:110: #if defined(TOOLKIT_GTK) The difficulty is that the ImageData constructor ...
7 years, 6 months ago (2013-06-05 02:05:03 UTC) #5
dmichael (off chromium)
On 2013/06/05 02:05:03, bbudge1 wrote: > https://codereview.chromium.org/16335018/diff/2016/ppapi/proxy/video_source_resource.cc > File ppapi/proxy/video_source_resource.cc (right): > > https://codereview.chromium.org/16335018/diff/2016/ppapi/proxy/video_source_resource.cc#newcode110 > ...
7 years, 6 months ago (2013-06-05 02:15:58 UTC) #6
bbudge
After looking at ppb_image_data_proxy.cc, I realized it would be non-trivial to make the "NaCl style" ...
7 years, 6 months ago (2013-06-05 19:18:52 UTC) #7
bbudge
This includes the ImageData refactoring. Once that's done, this will be ready for review
7 years, 6 months ago (2013-06-09 00:14:17 UTC) #8
bbudge
David for PPAPI stuff. Mustafa for IPC security review - ppapi_messages.h, and overall whitelist checking ...
7 years, 6 months ago (2013-06-19 00:09:08 UTC) #9
bbudge
On 2013/06/19 00:09:08, bbudge1 wrote: > David for PPAPI stuff. > Mustafa for IPC security ...
7 years, 6 months ago (2013-06-19 00:21:30 UTC) #10
bbudge
https://codereview.chromium.org/16335018/diff/2016/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/16335018/diff/2016/content/renderer/pepper/pepper_video_source_host.cc#newcode201 content/renderer/pepper/pepper_video_source_host.cc:201: int shmem_key = On 2013/06/05 19:18:52, bbudge1 wrote: > ...
7 years, 6 months ago (2013-06-19 00:22:32 UTC) #11
meacer
https://codereview.chromium.org/16335018/diff/67001/ppapi/proxy/video_source_resource.cc File ppapi/proxy/video_source_resource.cc (right): https://codereview.chromium.org/16335018/diff/67001/ppapi/proxy/video_source_resource.cc#newcode96 ppapi/proxy/video_source_resource.cc:96: PP_VideoFrame_Private* frame, It seems possible that frame->image_data is not ...
7 years, 6 months ago (2013-06-19 02:05:11 UTC) #12
bbudge
https://codereview.chromium.org/16335018/diff/67001/ppapi/proxy/video_source_resource.cc File ppapi/proxy/video_source_resource.cc (right): https://codereview.chromium.org/16335018/diff/67001/ppapi/proxy/video_source_resource.cc#newcode96 ppapi/proxy/video_source_resource.cc:96: PP_VideoFrame_Private* frame, Yes, the API contract is that the ...
7 years, 6 months ago (2013-06-19 16:55:00 UTC) #13
dmichael (off chromium)
This looks great, thank you for going through the trouble of fixing ImageData so this ...
7 years, 6 months ago (2013-06-19 17:50:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/16335018/80001
7 years, 6 months ago (2013-06-19 17:52:07 UTC) #15
meacer
On 2013/06/19 16:55:00, bbudge1 wrote: > https://codereview.chromium.org/16335018/diff/67001/ppapi/proxy/video_source_resource.cc > File ppapi/proxy/video_source_resource.cc (right): > > https://codereview.chromium.org/16335018/diff/67001/ppapi/proxy/video_source_resource.cc#newcode96 > ...
7 years, 6 months ago (2013-06-19 17:53:38 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=10447
7 years, 6 months ago (2013-06-19 18:06:40 UTC) #17
bbudge
+Raymes for content/renderer/pepper
7 years, 6 months ago (2013-06-19 18:14:38 UTC) #18
bbudge
+Chris for IPC OWNERS, meacer has reviewed messages
7 years, 6 months ago (2013-06-19 18:16:19 UTC) #19
raymes
lgtm On Wed, Jun 19, 2013 at 11:14 AM, <bbudge@chromium.org> wrote: > +Raymes for content/renderer/pepper ...
7 years, 6 months ago (2013-06-19 18:40:49 UTC) #20
palmer
https://codereview.chromium.org/16335018/diff/80001/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://codereview.chromium.org/16335018/diff/80001/ppapi/proxy/ppapi_messages.h#newcode1651 ppapi/proxy/ppapi_messages.h:1651: std::string /* stream_url */) Shouldn't this, and the |stream_url| ...
7 years, 6 months ago (2013-06-19 18:57:49 UTC) #21
bbudge
https://codereview.chromium.org/16335018/diff/80001/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://codereview.chromium.org/16335018/diff/80001/ppapi/proxy/ppapi_messages.h#newcode1651 ppapi/proxy/ppapi_messages.h:1651: std::string /* stream_url */) GURL isn't available on the ...
7 years, 6 months ago (2013-06-19 19:33:12 UTC) #22
palmer
lgtm
7 years, 6 months ago (2013-06-19 20:27:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/16335018/80001
7 years, 6 months ago (2013-06-20 01:43:20 UTC) #24
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 07:59:17 UTC) #25
Message was sent while issue was closed.
Change committed as 207348

Powered by Google App Engine
This is Rietveld 408576698