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

Unified Diff: content/browser/ssl/ssl_cert_error_handler.cc

Issue 9406001: Factor out ResourceDispatcherHost dependent code around SSLManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for retry Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/ssl/ssl_cert_error_handler.h ('k') | content/browser/ssl/ssl_error_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_cert_error_handler.cc
diff --git a/content/browser/ssl/ssl_cert_error_handler.cc b/content/browser/ssl/ssl_cert_error_handler.cc
index 496ac43263cf3c3c4c07471ef8eac46e15779f7f..2975797aee6b0cefed187d5251ede38824f52fb8 100644
--- a/content/browser/ssl/ssl_cert_error_handler.cc
+++ b/content/browser/ssl/ssl_cert_error_handler.cc
@@ -5,6 +5,7 @@
#include "content/browser/ssl/ssl_cert_error_handler.h"
#include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
+#include "content/browser/ssl/ssl_manager.h"
#include "content/browser/ssl/ssl_policy.h"
#include "net/base/cert_status_flags.h"
#include "net/base/x509_certificate.h"
@@ -12,16 +13,19 @@
using content::ResourceDispatcherHostImpl;
SSLCertErrorHandler::SSLCertErrorHandler(
- ResourceDispatcherHostImpl* host,
- net::URLRequest* request,
+ Delegate* delegate,
+ const content::GlobalRequestID& id,
ResourceType::Type resource_type,
+ const GURL& url,
+ int render_process_id,
+ int render_view_id,
const net::SSLInfo& ssl_info,
bool fatal)
- : SSLErrorHandler(host, request, resource_type),
+ : SSLErrorHandler(delegate, id, resource_type, url, render_process_id,
+ render_view_id),
ssl_info_(ssl_info),
cert_error_(net::MapCertStatusToNetError(ssl_info.cert_status)),
fatal_(fatal) {
- DCHECK(request == resource_dispatcher_host_->GetURLRequest(request_id_));
}
SSLCertErrorHandler* SSLCertErrorHandler::AsSSLCertErrorHandler() {
« no previous file with comments | « content/browser/ssl/ssl_cert_error_handler.h ('k') | content/browser/ssl/ssl_error_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698