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

Issue 9405038: Add PPAPI interface for secure sockets in flash (Closed)

Created:
8 years, 10 months ago by raymes
Modified:
8 years, 9 months ago
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Add the PPAPI interface for secure sockets in flash. This is a rough first draft. Some notes: -After discussing with rsleevi, determined that writing the general purpose interface would require a lot more work/discussion so I've chosen to go the flash-specific interface here as it's the path of least resistance. -I've used PP_Var for returning binary blob data. The PP_ARRAY_BUFFER type will be used. BUG=114626 TEST=none

Patch Set 1 : . #

Total comments: 38

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : .. #

Patch Set 17 : . #

Patch Set 18 : . #

Patch Set 19 : . #

Patch Set 20 : . #

Patch Set 21 : . #

Patch Set 22 : . #

Patch Set 23 : . #

Patch Set 24 : . #

Patch Set 25 : . #

Patch Set 26 : . #

Patch Set 27 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1122 lines, -3 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_tcp_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_tcp_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +22 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +11 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +10 lines, -0 lines 0 comments Download
A ppapi/api/private/ppb_flash_x509_certificate.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +75 lines, -0 lines 0 comments Download
ppapi/c/private/ppb_flash_x509_certificate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +103 lines, -0 lines 0 comments Download
A ppapi/cpp/private/flash_x509_certificate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +32 lines, -0 lines 0 comments Download
A ppapi/cpp/private/flash_x509_certificate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +56 lines, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_proxy_untrusted.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +5 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +7 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +9 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +22 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_flash_x509_certificate_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +40 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_flash_x509_certificate_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +79 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/shared_impl/api_id.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/shared_impl/private/ppb_flash_x509_certificate_shared.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +82 lines, -0 lines 0 comments Download
A ppapi/shared_impl/private/ppb_flash_x509_certificate_shared.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +160 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -0 lines 0 comments Download
A ppapi/tests/test_flash_x509_certificate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +30 lines, -0 lines 0 comments Download
A ppapi/tests/test_flash_x509_certificate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +125 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_flash_x509_certificate_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +26 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_flash_x509_certificate_thunk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +62 lines, -0 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_flash_x509_certificate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +39 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_flash_x509_certificate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +41 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
raymes
8 years, 10 months ago (2012-02-16 18:39:55 UTC) #1
raymes
8 years, 10 months ago (2012-02-16 18:42:03 UTC) #2
wtc
rsleevi: could you also review this? Thanks.
8 years, 10 months ago (2012-02-16 20:01:59 UTC) #3
Ryan Sleevi
Hey raymes, I'm taking a first stab at this to sort of highlight the 'hear ...
8 years, 10 months ago (2012-02-16 21:29:23 UTC) #4
raymes
Hi Ryan, thanks for the comments this is exactly the guidance I was looking for. ...
8 years, 10 months ago (2012-02-16 22:31:29 UTC) #5
Ryan Sleevi
http://codereview.chromium.org/9405038/diff/1008/ppapi/api/private/ppb_flash_tcp_socket.idl File ppapi/api/private/ppb_flash_tcp_socket.idl (right): http://codereview.chromium.org/9405038/diff/1008/ppapi/api/private/ppb_flash_tcp_socket.idl#newcode84 ppapi/api/private/ppb_flash_tcp_socket.idl:84: PP_Resource GetX509Certificate([in] PP_Resource tcp_socket); On 2012/02/16 22:31:29, raymes wrote: ...
8 years, 10 months ago (2012-02-16 23:06:32 UTC) #6
raymes
Updated the CL, PTAL. Thanks. https://chromiumcodereview.appspot.com/9405038/diff/1008/ppapi/api/private/ppb_flash_tcp_socket.idl File ppapi/api/private/ppb_flash_tcp_socket.idl (right): https://chromiumcodereview.appspot.com/9405038/diff/1008/ppapi/api/private/ppb_flash_tcp_socket.idl#newcode84 ppapi/api/private/ppb_flash_tcp_socket.idl:84: PP_Resource GetX509Certificate([in] PP_Resource tcp_socket); ...
8 years, 10 months ago (2012-02-21 19:07:39 UTC) #7
Ryan Sleevi
8 years, 10 months ago (2012-02-21 19:22:42 UTC) #8
As a 1:1 match of the public Flash API, LGTM. We can revisit this when/if
exposing to NACL or other apps.

https://chromiumcodereview.appspot.com/9405038/diff/8001/ppapi/api/private/pp...
File ppapi/api/private/ppb_flash_x509_certificate.idl (right):

https://chromiumcodereview.appspot.com/9405038/diff/8001/ppapi/api/private/pp...
ppapi/api/private/ppb_flash_x509_certificate.idl:79: * Get the valid start date
of the certificate.
s/valid/validity/ ?

https://chromiumcodereview.appspot.com/9405038/diff/8001/ppapi/api/private/pp...
ppapi/api/private/ppb_flash_x509_certificate.idl:114: * <code>PP_Var</code>
array buffer.
PP_Var can contain NULLs, correct?

I'm just anticipating that for most/all certificates, this will be a
non-existent field, ergo NULL seems the correct response.

Powered by Google App Engine
This is Rietveld 408576698