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

Side by Side Diff: content/browser/ssl/ssl_cert_error_handler.cc

Issue 10332233: Inherits SupportsWeakPtr<T> instead of having WeakPtrFactory<T> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style nits Created 8 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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/ssl/ssl_cert_error_handler.h" 5 #include "content/browser/ssl/ssl_cert_error_handler.h"
6 6
7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
8 #include "content/browser/ssl/ssl_manager.h" 8 #include "content/browser/ssl/ssl_manager.h"
9 #include "content/browser/ssl/ssl_policy.h" 9 #include "content/browser/ssl/ssl_policy.h"
10 #include "net/base/cert_status_flags.h" 10 #include "net/base/cert_status_flags.h"
11 #include "net/base/x509_certificate.h" 11 #include "net/base/x509_certificate.h"
12 12
13 using content::ResourceDispatcherHostImpl; 13 using content::ResourceDispatcherHostImpl;
14 14
15 SSLCertErrorHandler::SSLCertErrorHandler( 15 SSLCertErrorHandler::SSLCertErrorHandler(
16 base::WeakPtr<Delegate> delegate, 16 const base::WeakPtr<Delegate>& delegate,
17 const content::GlobalRequestID& id, 17 const content::GlobalRequestID& id,
18 ResourceType::Type resource_type, 18 ResourceType::Type resource_type,
19 const GURL& url, 19 const GURL& url,
20 int render_process_id, 20 int render_process_id,
21 int render_view_id, 21 int render_view_id,
22 const net::SSLInfo& ssl_info, 22 const net::SSLInfo& ssl_info,
23 bool fatal) 23 bool fatal)
24 : SSLErrorHandler(delegate, id, resource_type, url, render_process_id, 24 : SSLErrorHandler(delegate, id, resource_type, url, render_process_id,
25 render_view_id), 25 render_view_id),
26 ssl_info_(ssl_info), 26 ssl_info_(ssl_info),
(...skipping 14 matching lines...) Expand all
41 } else { 41 } else {
42 CancelRequest(); 42 CancelRequest();
43 } 43 }
44 } 44 }
45 45
46 void SSLCertErrorHandler::OnDispatched() { 46 void SSLCertErrorHandler::OnDispatched() {
47 manager_->policy()->OnCertError(this); 47 manager_->policy()->OnCertError(this);
48 } 48 }
49 49
50 SSLCertErrorHandler::~SSLCertErrorHandler() {} 50 SSLCertErrorHandler::~SSLCertErrorHandler() {}
OLDNEW
« 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