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

Side by Side Diff: content/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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ssl/ssl_cert_error_handler.h" 5 #include "content/browser/ssl/ssl_cert_error_handler.h"
6 6
7 #include "chrome/browser/ssl/ssl_manager.h"
8 #include "chrome/browser/ssl/ssl_policy.h"
9 #include "content/browser/renderer_host/resource_dispatcher_host.h" 7 #include "content/browser/renderer_host/resource_dispatcher_host.h"
8 #include "content/browser/ssl/ssl_policy.h"
10 #include "net/base/x509_certificate.h" 9 #include "net/base/x509_certificate.h"
11 10
12 SSLCertErrorHandler::SSLCertErrorHandler( 11 SSLCertErrorHandler::SSLCertErrorHandler(
13 ResourceDispatcherHost* rdh, 12 ResourceDispatcherHost* rdh,
14 net::URLRequest* request, 13 net::URLRequest* request,
15 ResourceType::Type resource_type, 14 ResourceType::Type resource_type,
16 int cert_error, 15 int cert_error,
17 net::X509Certificate* cert) 16 net::X509Certificate* cert)
18 : SSLErrorHandler(rdh, request, resource_type), 17 : SSLErrorHandler(rdh, request, resource_type),
19 cert_error_(cert_error) { 18 cert_error_(cert_error) {
(...skipping 11 matching lines...) Expand all
31 30
32 void SSLCertErrorHandler::OnDispatchFailed() { 31 void SSLCertErrorHandler::OnDispatchFailed() {
33 CancelRequest(); 32 CancelRequest();
34 } 33 }
35 34
36 void SSLCertErrorHandler::OnDispatched() { 35 void SSLCertErrorHandler::OnDispatched() {
37 manager_->policy()->OnCertError(this); 36 manager_->policy()->OnCertError(this);
38 } 37 }
39 38
40 SSLCertErrorHandler::~SSLCertErrorHandler() {} 39 SSLCertErrorHandler::~SSLCertErrorHandler() {}
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_cert_error_handler.h ('k') | content/browser/ssl/ssl_client_auth_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698