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

Issue 9699100: Add functionality to pppapi TCPSocket to support secure sockets in flash (Closed)

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

Description

This adds the following to functions to the ppapi TCPSocket interface: 1) GetServer certificate, which returns the server X509Certificate if an SSL connection has been established. 2) AddChainBuilding certificate. This is currently unimplemented in Chrome but the interface and plumbing has been added so it can easily be hooked up. This should add a trusted/untrusted chain building certificate to be used by the client for a particular connection when performing the SSL handshake. BUG=114626 TEST=out/Release/browser_tests --gtest_filter=*PPAPITest.*TCP*Trusted* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131918

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: 66

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 8

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+611 lines, -130 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 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 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.cc View 1 2 3 4 1 chunk +8 lines, -4 lines 0 comments Download
M content/browser/renderer_host/pepper_tcp_socket.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper_tcp_socket.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 2 chunks +11 lines, -6 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 2 chunks +7 lines, -4 lines 0 comments Download
M ppapi/api/private/ppb_tcp_socket_private.idl View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -1 line 0 comments Download
M ppapi/c/private/ppb_tcp_socket_private.h View 1 2 3 4 5 6 7 8 5 chunks +52 lines, -4 lines 0 comments Download
M ppapi/cpp/private/tcp_socket_private.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M ppapi/cpp/private/tcp_socket_private.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +114 lines, -40 lines 0 comments Download
M ppapi/cpp/private/x509_certificate_private.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M ppapi/cpp/private/x509_certificate_private.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -7 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_tcp_socket_private.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_tcp_socket_private.cc View 3 chunks +31 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 1 chunk +2 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 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_tcp_socket_private_proxy.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_tcp_socket_private_proxy.cc View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -7 lines 0 comments Download
M ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -2 lines 0 comments Download
M ppapi/shared_impl/private/tcp_socket_private_impl.h View 1 2 3 4 5 6 7 chunks +22 lines, -3 lines 0 comments Download
M ppapi/shared_impl/private/tcp_socket_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +57 lines, -4 lines 0 comments Download
A ppapi/tests/test_tcp_socket_private_trusted.h View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A ppapi/tests/test_tcp_socket_private_trusted.cc View 1 2 3 4 5 6 7 8 1 chunk +65 lines, -0 lines 0 comments Download
M ppapi/tests/test_x509_certificate_private.cc View 1 2 3 4 5 6 7 8 7 chunks +8 lines, -8 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_tcp_socket_private_api.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_tcp_socket_private_thunk.cc View 1 2 3 4 5 6 4 chunks +37 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h View 2 chunks +7 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_tcp_socket_private_impl.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
raymes
8 years, 8 months ago (2012-04-04 22:58:23 UTC) #1
raymes
(Note this is the final CL in the series).
8 years, 8 months ago (2012-04-04 22:58:45 UTC) #2
Ryan Sleevi
http://codereview.chromium.org/9699100/diff/15001/content/browser/renderer_host/pepper_tcp_socket.cc File content/browser/renderer_host/pepper_tcp_socket.cc (right): http://codereview.chromium.org/9699100/diff/15001/content/browser/renderer_host/pepper_tcp_socket.cc#newcode291 content/browser/renderer_host/pepper_tcp_socket.cc:291: CHECK(ssl_info.cert.get()); Note that this can fail for a variety ...
8 years, 8 months ago (2012-04-06 00:37:49 UTC) #3
yzshen1
https://chromiumcodereview.appspot.com/9699100/diff/15001/content/browser/renderer_host/pepper_message_filter.h File content/browser/renderer_host/pepper_message_filter.h (right): https://chromiumcodereview.appspot.com/9699100/diff/15001/content/browser/renderer_host/pepper_message_filter.h#newcode140 content/browser/renderer_host/pepper_message_filter.h:140: const std::vector<std::vector<char> >& trusted_certs, include vector, please. https://chromiumcodereview.appspot.com/9699100/diff/15001/content/browser/renderer_host/pepper_tcp_socket.cc File ...
8 years, 8 months ago (2012-04-06 19:24:33 UTC) #4
raymes
http://codereview.chromium.org/9699100/diff/15001/content/browser/renderer_host/pepper_message_filter.h File content/browser/renderer_host/pepper_message_filter.h (right): http://codereview.chromium.org/9699100/diff/15001/content/browser/renderer_host/pepper_message_filter.h#newcode140 content/browser/renderer_host/pepper_message_filter.h:140: const std::vector<std::vector<char> >& trusted_certs, On 2012/04/06 19:24:33, yzshen1 wrote: ...
8 years, 8 months ago (2012-04-06 23:22:47 UTC) #5
yzshen1
Only a few nits left. Thanks! http://codereview.chromium.org/9699100/diff/23008/ppapi/cpp/private/tcp_socket_private.cc File ppapi/cpp/private/tcp_socket_private.cc (right): http://codereview.chromium.org/9699100/diff/23008/ppapi/cpp/private/tcp_socket_private.cc#newcode29 ppapi/cpp/private/tcp_socket_private.cc:29: if ((has_interface<PPB_TCPSocket_Private>() || ...
8 years, 8 months ago (2012-04-09 17:55:41 UTC) #6
yzshen1
Only a few nits left. Thanks!
8 years, 8 months ago (2012-04-09 17:55:53 UTC) #7
raymes
Thanks for the review! http://codereview.chromium.org/9699100/diff/23008/ppapi/cpp/private/tcp_socket_private.cc File ppapi/cpp/private/tcp_socket_private.cc (right): http://codereview.chromium.org/9699100/diff/23008/ppapi/cpp/private/tcp_socket_private.cc#newcode29 ppapi/cpp/private/tcp_socket_private.cc:29: if ((has_interface<PPB_TCPSocket_Private>() || On 2012/04/09 ...
8 years, 8 months ago (2012-04-09 19:35:50 UTC) #8
yzshen1
lgtm
8 years, 8 months ago (2012-04-09 20:25:06 UTC) #9
raymes
+OWNERS brettw: content/* chrome/test/ui/ppapi_uitest.cc webkit/plugins/ppapi
8 years, 8 months ago (2012-04-09 21:25:13 UTC) #10
brettw
lgtm
8 years, 8 months ago (2012-04-11 20:24:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/9699100/37002
8 years, 8 months ago (2012-04-12 00:05:49 UTC) #12
commit-bot: I haz the power
8 years, 8 months ago (2012-04-12 03:38:24 UTC) #13
Change committed as 131918

Powered by Google App Engine
This is Rietveld 408576698