From 88e7d5688f95703ac9a6ddac4752098c407223e5 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Sat, 7 Mar 2009 00:19:38 +0000 Subject: 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 Review URL: http://codereview.chromium.org/7276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11179 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/resource_dispatcher.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/common/resource_dispatcher.h') diff --git a/chrome/common/resource_dispatcher.h b/chrome/common/resource_dispatcher.h index a6b73d5..b4e7fb1 100644 --- a/chrome/common/resource_dispatcher.h +++ b/chrome/common/resource_dispatcher.h @@ -108,7 +108,9 @@ class ResourceDispatcher : public base::RefCounted { void OnReceivedRedirect(int request_id, const GURL& new_url); void OnReceivedData(int request_id, base::SharedMemoryHandle data, int data_len); - void OnRequestComplete(int request_id, const URLRequestStatus& status); + void OnRequestComplete(int request_id, + const URLRequestStatus& status, + const std::string& security_info); // Dispatch the message to one of the message response handlers. void DispatchMessage(const IPC::Message& message); -- cgit v1.1