diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 09:18:06 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 09:18:06 +0000 |
commit | c46b0e667387bb42a18be86e8b1f85e968902953 (patch) | |
tree | 801ddb204b400e25ecd3fe1211584e5b5519e93e /chrome/browser/ssl/ssl_manager.h | |
parent | ffc45869f044885b81265e6a67cb0220758113b5 (diff) | |
download | chromium_src-c46b0e667387bb42a18be86e8b1f85e968902953.zip chromium_src-c46b0e667387bb42a18be86e8b1f85e968902953.tar.gz chromium_src-c46b0e667387bb42a18be86e8b1f85e968902953.tar.bz2 |
SSLPolicy Fix: Step 3.
Plumbing the security origin of the frame making the request to SSL land.
R=wtc
BUG=8706
Review URL: http://codereview.chromium.org/48038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl/ssl_manager.h')
-rw-r--r-- | chrome/browser/ssl/ssl_manager.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/ssl/ssl_manager.h b/chrome/browser/ssl/ssl_manager.h index 63cfce4..28ebbaa 100644 --- a/chrome/browser/ssl/ssl_manager.h +++ b/chrome/browser/ssl/ssl_manager.h @@ -343,16 +343,17 @@ class SSLManager : public NotificationObserver { net::X509Certificate* cert, MessageLoop* ui_loop); - // Called when a mixed-content sub-resource request has been detected. The - // request is not started yet. The SSLManager will make a decision on whether - // to filter that request's content (with the filter_policy flag). + // Called before a URL request is about to be started. Returns false if the + // resource request should be delayed while we figure out what to do. We use + // this function as the entry point for our mixed content detection. + // // TODO(jcampan): Implement a way to just cancel the request. This is not // straight-forward as canceling a request that has not been started will // not remove from the pending_requests_ of the ResourceDispatcherHost. // Called on the IO thread. - static void OnMixedContentRequest(ResourceDispatcherHost* resource_dispatcher, - URLRequest* request, - MessageLoop* ui_loop); + static bool ShouldStartRequest(ResourceDispatcherHost* resource_dispatcher, + URLRequest* request, + MessageLoop* ui_loop); // Called by CertError::Dispatch to kick off processing of the cert error by // the SSL manager. The error originated from the ResourceDispatcherHost. |