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

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

Issue 7111013: Move most of the core SSL code from chrome to content. The UI code that's specific to Chrome (i.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « chrome/browser/ssl/ssl_cert_error_handler.h ('k') | chrome/browser/ssl/ssl_client_auth_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/ssl_cert_error_handler.cc
===================================================================
--- chrome/browser/ssl/ssl_cert_error_handler.cc (revision 87796)
+++ chrome/browser/ssl/ssl_cert_error_handler.cc (working copy)
@@ -1,40 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ssl/ssl_cert_error_handler.h"
-
-#include "chrome/browser/ssl/ssl_manager.h"
-#include "chrome/browser/ssl/ssl_policy.h"
-#include "content/browser/renderer_host/resource_dispatcher_host.h"
-#include "net/base/x509_certificate.h"
-
-SSLCertErrorHandler::SSLCertErrorHandler(
- ResourceDispatcherHost* rdh,
- net::URLRequest* request,
- ResourceType::Type resource_type,
- int cert_error,
- net::X509Certificate* cert)
- : SSLErrorHandler(rdh, request, resource_type),
- cert_error_(cert_error) {
- DCHECK(request == resource_dispatcher_host_->GetURLRequest(request_id_));
-
- // We cannot use the request->ssl_info(), it's not been initialized yet, so
- // we have to set the fields manually.
- ssl_info_.cert = cert;
- ssl_info_.SetCertError(cert_error);
-}
-
-SSLCertErrorHandler* SSLCertErrorHandler::AsSSLCertErrorHandler() {
- return this;
-}
-
-void SSLCertErrorHandler::OnDispatchFailed() {
- CancelRequest();
-}
-
-void SSLCertErrorHandler::OnDispatched() {
- manager_->policy()->OnCertError(this);
-}
-
-SSLCertErrorHandler::~SSLCertErrorHandler() {}
« no previous file with comments | « chrome/browser/ssl/ssl_cert_error_handler.h ('k') | chrome/browser/ssl/ssl_client_auth_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698