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

Side by Side Diff: content/browser/ssl/ssl_manager.h

Issue 10332233: Inherits SupportsWeakPtr<T> instead of having WeakPtrFactory<T> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
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 #ifndef CONTENT_BROWSER_SSL_SSL_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_MANAGER_H_
6 #define CONTENT_BROWSER_SSL_SSL_MANAGER_H_ 6 #define CONTENT_BROWSER_SSL_SSL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 class SSLManager : public content::NotificationObserver { 46 class SSLManager : public content::NotificationObserver {
47 public: 47 public:
48 // Entry point for SSLCertificateErrors. This function begins the process 48 // Entry point for SSLCertificateErrors. This function begins the process
49 // of resolving a certificate error during an SSL connection. SSLManager 49 // of resolving a certificate error during an SSL connection. SSLManager
50 // will adjust the security UI and either call |CancelSSLRequest| or 50 // will adjust the security UI and either call |CancelSSLRequest| or
51 // |ContinueSSLRequest| of |delegate| with |id| as the first argument. 51 // |ContinueSSLRequest| of |delegate| with |id| as the first argument.
52 // 52 //
53 // Called on the IO thread. 53 // Called on the IO thread.
54 static void OnSSLCertificateError( 54 static void OnSSLCertificateError(
55 base::WeakPtr<SSLErrorHandler::Delegate> delegate, 55 const base::WeakPtr<SSLErrorHandler::Delegate>& delegate,
56 const content::GlobalRequestID& id, 56 const content::GlobalRequestID& id,
57 ResourceType::Type resource_type, 57 ResourceType::Type resource_type,
58 const GURL& url, 58 const GURL& url,
59 int render_process_id, 59 int render_process_id,
60 int render_view_id, 60 int render_view_id,
61 const net::SSLInfo& ssl_info, 61 const net::SSLInfo& ssl_info,
62 bool fatal); 62 bool fatal);
63 63
64 // Called when SSL state for a host or tab changes. Broadcasts the 64 // Called when SSL state for a host or tab changes. Broadcasts the
65 // SSL_INTERNAL_STATE_CHANGED notification. 65 // SSL_INTERNAL_STATE_CHANGED notification.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // for the security UI of this tab. 117 // for the security UI of this tab.
118 NavigationControllerImpl* controller_; 118 NavigationControllerImpl* controller_;
119 119
120 // Handles registering notifications with the NotificationService. 120 // Handles registering notifications with the NotificationService.
121 content::NotificationRegistrar registrar_; 121 content::NotificationRegistrar registrar_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(SSLManager); 123 DISALLOW_COPY_AND_ASSIGN(SSLManager);
124 }; 124 };
125 125
126 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ 126 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698