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

Issue 7276: Adding security info to canceled requests (Closed)

Created:
12 years, 2 months ago by jcampan
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL adds a way to specify the security info when canceling a URLRequest. This allows to tag a request on the renderer side with its security info. It is useful for the "frame info" dialog. When showing that dialog for blocked frames, the security info can be retrieved and users can see the cert details for the blocked frame. TEST=Open a page containing a frame served over bad HTTPS. The frame is blocked (replaced with a warning message). Right-click, select "Frame info". The dialog should have a "show cert" button which when pressed should show the frame's bad cert. BUG=2853 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11179

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -70 lines) Patch
M chrome/browser/renderer_host/async_resource_handler.h View 4 5 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/async_resource_handler.cc View 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/buffered_resource_handler.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/buffered_resource_handler.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/cross_site_resource_handler.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/cross_site_resource_handler.cc View 4 5 5 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/download_throttling_resource_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/download_throttling_resource_handler.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 4 5 4 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/resource_handler.h View 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_handler.h View 4 5 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_handler.cc View 4 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/save_file_resource_handler.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/save_file_resource_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/sync_resource_handler.h View 4 5 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/sync_resource_handler.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ssl/ssl_manager.h View 6 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ssl/ssl_manager.cc View 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/resource_dispatcher.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/resource_dispatcher.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/resource_dispatcher_unittest.cc View 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/security_filter_peer.h View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/common/security_filter_peer.cc View 1 2 3 5 chunks +10 lines, -6 lines 0 comments Download
M chrome/plugin/chrome_plugin_host.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/chrome_plugin_host.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M net/base/ssl_info.h View 1 2 1 chunk +14 lines, -0 lines 1 comment Download
M net/url_request/url_request.h View 1 2 3 2 chunks +13 lines, -4 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 2 chunks +16 lines, -2 lines 0 comments Download
M net/url_request/url_request_job.h View 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/glue/resource_handle_impl.cc View 3 chunks +5 lines, -3 lines 2 comments Download
M webkit/glue/resource_loader_bridge.h View 1 2 3 1 chunk +2 lines, -1 line 2 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jcampan
12 years, 2 months ago (2008-10-13 22:00:19 UTC) #1
wtc
LGTM. http://codereview.chromium.org/7276/diff/1/9 File chrome/browser/resource_dispatcher_host.cc (right): http://codereview.chromium.org/7276/diff/1/9#newcode157 Line 157: const std::string& security_info) { The style guide's ...
12 years, 2 months ago (2008-10-14 00:22:40 UTC) #2
darin (slow to review)
http://codereview.chromium.org/7276/diff/1/6 File net/url_request/url_request.h (right): http://codereview.chromium.org/7276/diff/1/6#newcode360 Line 360: void CancelWithError(int os_error, const net::SSLInfo& ssl_info); This seems ...
12 years, 2 months ago (2008-10-14 07:09:13 UTC) #3
jcampan
http://codereview.chromium.org/7276/diff/1/9 File chrome/browser/resource_dispatcher_host.cc (right): http://codereview.chromium.org/7276/diff/1/9#newcode157 Line 157: const std::string& security_info) { On 2008/10/14 00:22:40, wtc ...
12 years, 2 months ago (2008-10-14 18:54:02 UTC) #4
wtc
http://codereview.chromium.org/7276/diff/1/6 File net/url_request/url_request.h (right): http://codereview.chromium.org/7276/diff/1/6#newcode360 Line 360: void CancelWithError(int os_error, const net::SSLInfo& ssl_info); On 2008/10/14 ...
12 years, 2 months ago (2008-10-14 23:31:37 UTC) #5
jcampan
New snapshot pushed. Darin, are you OK with the change? Jay http://codereview.chromium.org/7276/diff/39/43 File net/base/ssl_info.h (right): ...
12 years, 2 months ago (2008-10-16 20:48:01 UTC) #6
darin (slow to review)
It looks like this CL didn't land. Perhaps because you were still waiting for my ...
11 years, 10 months ago (2009-02-18 17:27:26 UTC) #7
jcampan
On 2009/02/18 17:27:26, darin wrote: > It looks like this CL didn't land. Perhaps because ...
11 years, 10 months ago (2009-02-19 18:58:02 UTC) #8
jcampan
Do you think you'll have time to look at this? Jay
11 years, 9 months ago (2009-03-04 19:15:56 UTC) #9
darin (slow to review)
just some initial comments.. http://codereview.chromium.org/7276/diff/2639/1653 File webkit/glue/resource_handle_impl.cc (right): http://codereview.chromium.org/7276/diff/2639/1653#newcode608 Line 608: const std::string& security_info) { ...
11 years, 9 months ago (2009-03-04 19:29:01 UTC) #10
jcampan
http://codereview.chromium.org/7276/diff/2639/1653 File webkit/glue/resource_handle_impl.cc (right): http://codereview.chromium.org/7276/diff/2639/1653#newcode608 Line 608: const std::string& security_info) { On 2009/03/04 19:29:01, darin ...
11 years, 9 months ago (2009-03-04 22:33:43 UTC) #11
darin (slow to review)
11 years, 9 months ago (2009-03-05 00:01:15 UTC) #12
LGTM except for:

http://codereview.chromium.org/7276/diff/2639/1654
File net/base/ssl_info.h (right):

http://codereview.chromium.org/7276/diff/2639/1654#newcode20
Line 20: SSLInfo(const SSLInfo& ssl_info)
what's wrong with the default copy constructor and assignment operator?  it
should be the same thing.

Powered by Google App Engine
This is Rietveld 408576698