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

Issue 9693024: Add the PPAPI X509 Certificate interface and implementation. (Closed)

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

Description

Add the PPAPI X509 Certificate interface and implementation. Adds the interface for accessing X509 certificate fields. Note that the interface uses a GetField(field) method for accessing various fields of the certificate and all resuls are returned as pp::Var. This greatly simplifies the implementation of the interface and process of adding/changing fields so it is probably better (at least in the short term for flash). BUG=114626 TEST=out/Debug/ui_tests --gtest_filter=*PPAPITest.*X509Certificate* NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=130654

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 27

Patch Set 9 : . #

Total comments: 6

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 30

Patch Set 12 : . #

Patch Set 13 : . #

Total comments: 42

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Total comments: 24

Patch Set 18 : . #

Total comments: 6

Patch Set 19 : . #

Total comments: 1

Patch Set 20 : . #

Patch Set 21 : . #

Patch Set 22 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1235 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 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 2 chunks +5 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 2 chunks +15 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper_tcp_socket.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +15 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 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 2 chunks +8 lines, -0 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 1 chunk +9 lines, -0 lines 0 comments Download
A ppapi/api/private/ppb_x509_certificate_private.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +161 lines, -0 lines 0 comments Download
A ppapi/c/private/ppb_x509_certificate_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +172 lines, -0 lines 0 comments Download
A ppapi/cpp/private/x509_certificate_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +35 lines, -0 lines 0 comments Download
A ppapi/cpp/private/x509_certificate_private.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 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 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 2 chunks +4 lines, -1 line 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 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 18 19 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 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 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 2 chunks +22 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_x509_certificate_private_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +35 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_x509_certificate_private_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +75 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 1 chunk +2 lines, -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 2 chunks +9 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 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +71 lines, -0 lines 0 comments Download
A ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +138 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 1 chunk +2 lines, -1 line 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 2 chunks +2 lines, -0 lines 0 comments Download
A ppapi/tests/test_x509_certificate_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +25 lines, -0 lines 0 comments Download
A ppapi/tests/test_x509_certificate_private.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 2 chunks +4 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_x509_certificate_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_x509_certificate_private_thunk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +63 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 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 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 11 12 13 14 15 16 17 18 19 2 chunks +5 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 11 12 13 14 15 16 17 18 19 1 chunk +6 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 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 1 chunk +1 line, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +37 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_x509_certificate_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +39 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 1 chunk +2 lines, -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 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
raymes
8 years, 9 months ago (2012-03-14 22:56:24 UTC) #1
Ryan Sleevi
Hi Raymes, No big gripes about this - a necessary implementation, I suppose :) I ...
8 years, 9 months ago (2012-03-15 02:27:56 UTC) #2
raymes
> I've annotated below what I believe the types should be. I'm not a fan ...
8 years, 9 months ago (2012-03-15 20:32:14 UTC) #3
Ryan Sleevi
http://codereview.chromium.org/9693024/diff/11047/ppapi/api/private/ppb_flash_x509_certificate.idl File ppapi/api/private/ppb_flash_x509_certificate.idl (right): http://codereview.chromium.org/9693024/diff/11047/ppapi/api/private/ppb_flash_x509_certificate.idl#newcode19 ppapi/api/private/ppb_flash_x509_certificate.idl:19: // <code>PP_VARTYPE_STRING</code>. This is definitely outside of my domain, ...
8 years, 9 months ago (2012-03-16 00:08:40 UTC) #4
raymes
http://codereview.chromium.org/9693024/diff/11047/ppapi/api/private/ppb_flash_x509_certificate.idl File ppapi/api/private/ppb_flash_x509_certificate.idl (right): http://codereview.chromium.org/9693024/diff/11047/ppapi/api/private/ppb_flash_x509_certificate.idl#newcode19 ppapi/api/private/ppb_flash_x509_certificate.idl:19: // <code>PP_VARTYPE_STRING</code>. I definitely agree that consistency is better ...
8 years, 9 months ago (2012-03-16 17:18:25 UTC) #5
yzshen1
First part of comments. http://codereview.chromium.org/9693024/diff/9051/content/browser/renderer_host/pepper_tcp_socket.h File content/browser/renderer_host/pepper_tcp_socket.h (right): http://codereview.chromium.org/9693024/diff/9051/content/browser/renderer_host/pepper_tcp_socket.h#newcode60 content/browser/renderer_host/pepper_tcp_socket.h:60: // Extract the certificate field ...
8 years, 9 months ago (2012-03-20 06:48:01 UTC) #6
raymes
Thanks for the initial comments =) http://codereview.chromium.org/9693024/diff/9051/content/browser/renderer_host/pepper_tcp_socket.h File content/browser/renderer_host/pepper_tcp_socket.h (right): http://codereview.chromium.org/9693024/diff/9051/content/browser/renderer_host/pepper_tcp_socket.h#newcode60 content/browser/renderer_host/pepper_tcp_socket.h:60: // Extract the ...
8 years, 9 months ago (2012-03-21 20:28:07 UTC) #7
yzshen1
http://codereview.chromium.org/9693024/diff/9051/ppapi/shared_impl/private/ppb_flash_x509_certificate_shared.h File ppapi/shared_impl/private/ppb_flash_x509_certificate_shared.h (right): http://codereview.chromium.org/9693024/diff/9051/ppapi/shared_impl/private/ppb_flash_x509_certificate_shared.h#newcode23 ppapi/shared_impl/private/ppb_flash_x509_certificate_shared.h:23: class PPB_X509Certificate_Fields { Okay. It is fine if you ...
8 years, 9 months ago (2012-03-22 23:32:40 UTC) #8
raymes
https://chromiumcodereview.appspot.com/9693024/diff/21001/ppapi/cpp/private/flash_x509_certificate.h File ppapi/cpp/private/flash_x509_certificate.h (right): https://chromiumcodereview.appspot.com/9693024/diff/21001/ppapi/cpp/private/flash_x509_certificate.h#newcode35 ppapi/cpp/private/flash_x509_certificate.h:35: } // namespace flash On 2012/03/22 23:32:40, yzshen1 wrote: ...
8 years, 9 months ago (2012-03-26 16:05:57 UTC) #9
yzshen1
http://codereview.chromium.org/9693024/diff/35001/ppapi/cpp/private/x509_certificate_private.cc File ppapi/cpp/private/x509_certificate_private.cc (right): http://codereview.chromium.org/9693024/diff/35001/ppapi/cpp/private/x509_certificate_private.cc#newcode53 ppapi/cpp/private/x509_certificate_private.cc:53: field)); wrong indent. http://codereview.chromium.org/9693024/diff/35001/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc File ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc (right): http://codereview.chromium.org/9693024/diff/35001/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc#newcode89 ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc:89: ...
8 years, 9 months ago (2012-03-26 17:51:08 UTC) #10
raymes
http://codereview.chromium.org/9693024/diff/35001/ppapi/cpp/private/x509_certificate_private.cc File ppapi/cpp/private/x509_certificate_private.cc (right): http://codereview.chromium.org/9693024/diff/35001/ppapi/cpp/private/x509_certificate_private.cc#newcode53 ppapi/cpp/private/x509_certificate_private.cc:53: field)); On 2012/03/26 17:51:08, yzshen1 wrote: > wrong indent. ...
8 years, 9 months ago (2012-03-26 19:31:34 UTC) #11
yzshen1
lgtm http://codereview.chromium.org/9693024/diff/35001/ppapi/tests/all_c_includes.h File ppapi/tests/all_c_includes.h (right): http://codereview.chromium.org/9693024/diff/35001/ppapi/tests/all_c_includes.h#newcode114 ppapi/tests/all_c_includes.h:114: #include "ppapi/c/private/ppb_x509_certificate_private.h" Use vim! :) On 2012/03/26 19:31:34, ...
8 years, 9 months ago (2012-03-26 20:15:25 UTC) #12
raymes
+OWNERS jam: content/ tony: webkit/glue viettrungluu: webkit/plugins/ppapi
8 years, 9 months ago (2012-03-26 20:35:05 UTC) #13
tony
webkit/glue/webkit_glue.gypi LGTM
8 years, 9 months ago (2012-03-26 21:09:35 UTC) #14
viettrungluu
LGTM with nits. http://codereview.chromium.org/9693024/diff/39008/content/renderer/pepper/pepper_plugin_delegate_impl.h File content/renderer/pepper/pepper_plugin_delegate_impl.h (right): http://codereview.chromium.org/9693024/diff/39008/content/renderer/pepper/pepper_plugin_delegate_impl.h#newcode327 content/renderer/pepper/pepper_plugin_delegate_impl.h:327: virtual bool X509CertificateParseDER( Nit: Please keep ...
8 years, 9 months ago (2012-03-27 17:10:56 UTC) #15
raymes
http://codereview.chromium.org/9693024/diff/39008/content/renderer/pepper/pepper_plugin_delegate_impl.h File content/renderer/pepper/pepper_plugin_delegate_impl.h (right): http://codereview.chromium.org/9693024/diff/39008/content/renderer/pepper/pepper_plugin_delegate_impl.h#newcode327 content/renderer/pepper/pepper_plugin_delegate_impl.h:327: virtual bool X509CertificateParseDER( On 2012/03/27 17:10:57, viettrungluu wrote: > ...
8 years, 9 months ago (2012-03-27 17:40:22 UTC) #16
jam
On 2012/03/26 20:35:05, raymes wrote: > +OWNERS > > jam: content/ please send this to ...
8 years, 9 months ago (2012-03-27 19:19:43 UTC) #17
raymes
+brettw for content/ approval.
8 years, 9 months ago (2012-03-27 19:23:46 UTC) #18
brettw
LGTM on content. http://codereview.chromium.org/9693024/diff/45001/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/9693024/diff/45001/content/browser/renderer_host/pepper_message_filter.cc#newcode778 content/browser/renderer_host/pepper_message_filter.cc:778: if (der.size() == 0) { Don't ...
8 years, 8 months ago (2012-03-29 18:05:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/9693024/49001
8 years, 8 months ago (2012-03-30 04:25:28 UTC) #20
commit-bot: I haz the power
Try job failure for 9693024-49001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-03-30 05:14:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/9693024/49001
8 years, 8 months ago (2012-04-02 15:58:45 UTC) #22
commit-bot: I haz the power
Try job failure for 9693024-49001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-02 16:53:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/9693024/49001
8 years, 8 months ago (2012-04-02 20:07:23 UTC) #24
commit-bot: I haz the power
Try job failure for 9693024-49001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-02 20:58:25 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/9693024/72005
8 years, 8 months ago (2012-04-04 00:13:47 UTC) #26
commit-bot: I haz the power
Try job failure for 9693024-72005 (previous was lost) (retry) on win_rel for steps "browser_tests, unit_tests". ...
8 years, 8 months ago (2012-04-04 04:21:13 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/9693024/72005
8 years, 8 months ago (2012-04-04 15:42:13 UTC) #28
commit-bot: I haz the power
Try job failure for 9693024-72005 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-04 17:05:04 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/9693024/72005
8 years, 8 months ago (2012-04-04 17:11:14 UTC) #30
commit-bot: I haz the power
8 years, 8 months ago (2012-04-04 17:15:52 UTC) #31
Change committed as 130654

Powered by Google App Engine
This is Rietveld 408576698