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

Side by Side Diff: content/browser/ssl/ssl_manager.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_manager.h ('k') | no next file » | 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_manager.h" 5 #include "content/browser/ssl/ssl_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "content/browser/load_from_memory_cache_details.h" 9 #include "content/browser/load_from_memory_cache_details.h"
10 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" 10 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
(...skipping 18 matching lines...) Expand all
29 using content::NavigationEntryImpl; 29 using content::NavigationEntryImpl;
30 using content::ResourceDispatcherHostImpl; 30 using content::ResourceDispatcherHostImpl;
31 using content::ResourceRedirectDetails; 31 using content::ResourceRedirectDetails;
32 using content::ResourceRequestDetails; 32 using content::ResourceRequestDetails;
33 using content::ResourceRequestInfoImpl; 33 using content::ResourceRequestInfoImpl;
34 using content::SSLStatus; 34 using content::SSLStatus;
35 using content::WebContents; 35 using content::WebContents;
36 36
37 // static 37 // static
38 void SSLManager::OnSSLCertificateError( 38 void SSLManager::OnSSLCertificateError(
39 base::WeakPtr<SSLErrorHandler::Delegate> delegate, 39 const base::WeakPtr<SSLErrorHandler::Delegate>& delegate,
40 const content::GlobalRequestID& id, 40 const content::GlobalRequestID& id,
41 const ResourceType::Type resource_type, 41 const ResourceType::Type resource_type,
42 const GURL& url, 42 const GURL& url,
43 int render_process_id, 43 int render_process_id,
44 int render_view_id, 44 int render_view_id,
45 const net::SSLInfo& ssl_info, 45 const net::SSLInfo& ssl_info,
46 bool fatal) { 46 bool fatal) {
47 DCHECK(delegate); 47 DCHECK(delegate);
48 DVLOG(1) << "OnSSLCertificateError() cert_error: " 48 DVLOG(1) << "OnSSLCertificateError() cert_error: "
49 << net::MapCertStatusToNetError(ssl_info.cert_status) 49 << net::MapCertStatusToNetError(ssl_info.cert_status)
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 policy()->UpdateEntry(entry, controller_->web_contents()); 223 policy()->UpdateEntry(entry, controller_->web_contents());
224 224
225 if (!entry->GetSSL().Equals(original_ssl_status)) { 225 if (!entry->GetSSL().Equals(original_ssl_status)) {
226 content::NotificationService::current()->Notify( 226 content::NotificationService::current()->Notify(
227 content::NOTIFICATION_SSL_VISIBLE_STATE_CHANGED, 227 content::NOTIFICATION_SSL_VISIBLE_STATE_CHANGED,
228 content::Source<NavigationController>(controller_), 228 content::Source<NavigationController>(controller_),
229 content::NotificationService::NoDetails()); 229 content::NotificationService::NoDetails());
230 } 230 }
231 } 231 }
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698