OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_SSL_SSL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_MANAGER_H_ |
6 #define CHROME_BROWSER_SSL_SSL_MANAGER_H_ | 6 #define CHROME_BROWSER_SSL_SSL_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chrome/browser/ssl/ssl_policy.h" | 11 #include "chrome/browser/ssl/ssl_policy.h" |
12 #include "chrome/browser/ssl/ssl_policy_backend.h" | 12 #include "chrome/browser/ssl/ssl_policy_backend.h" |
13 #include "chrome/common/notification_observer.h" | 13 #include "chrome/common/notification_observer.h" |
14 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
17 | 17 |
18 class LoadFromMemoryCacheDetails; | 18 class LoadFromMemoryCacheDetails; |
19 class MessageLoop; | |
20 class NavigationController; | 19 class NavigationController; |
21 class NavigationEntry; | 20 class NavigationEntry; |
22 class PrefService; | 21 class PrefService; |
23 class ProvisionalLoadDetails; | 22 class ProvisionalLoadDetails; |
24 class ResourceDispatcherHost; | 23 class ResourceDispatcherHost; |
25 class ResourceRedirectDetails; | 24 class ResourceRedirectDetails; |
26 class ResourceRequestDetails; | 25 class ResourceRequestDetails; |
27 class SSLCertErrorHandler; | 26 class SSLCertErrorHandler; |
28 class SSLPolicy; | 27 class SSLPolicy; |
29 class Task; | 28 class Task; |
(...skipping 25 matching lines...) Expand all Loading... |
55 | 54 |
56 // Entry point for SSLCertificateErrors. This function begins the process | 55 // Entry point for SSLCertificateErrors. This function begins the process |
57 // of resolving a certificate error during an SSL connection. SSLManager | 56 // of resolving a certificate error during an SSL connection. SSLManager |
58 // will adjust the security UI and either call |Cancel| or | 57 // will adjust the security UI and either call |Cancel| or |
59 // |ContinueDespiteLastError| on the URLRequest. | 58 // |ContinueDespiteLastError| on the URLRequest. |
60 // | 59 // |
61 // Called on the IO thread. | 60 // Called on the IO thread. |
62 static void OnSSLCertificateError(ResourceDispatcherHost* resource_dispatcher, | 61 static void OnSSLCertificateError(ResourceDispatcherHost* resource_dispatcher, |
63 URLRequest* request, | 62 URLRequest* request, |
64 int cert_error, | 63 int cert_error, |
65 net::X509Certificate* cert, | 64 net::X509Certificate* cert); |
66 MessageLoop* ui_loop); | |
67 | 65 |
68 // Mixed content entry points. | 66 // Mixed content entry points. |
69 void DidDisplayInsecureContent(); | 67 void DidDisplayInsecureContent(); |
70 void DidRunInsecureContent(const std::string& security_origin); | 68 void DidRunInsecureContent(const std::string& security_origin); |
71 | 69 |
72 // Entry point for navigation. This function begins the process of updating | 70 // Entry point for navigation. This function begins the process of updating |
73 // the security UI when the main frame navigates to a new URL. | 71 // the security UI when the main frame navigates to a new URL. |
74 // | 72 // |
75 // Called on the UI thread. | 73 // Called on the UI thread. |
76 virtual void Observe(NotificationType type, | 74 virtual void Observe(NotificationType type, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // for the security UI of this tab. | 150 // for the security UI of this tab. |
153 NavigationController* controller_; | 151 NavigationController* controller_; |
154 | 152 |
155 // Handles registering notifications with the NotificationService. | 153 // Handles registering notifications with the NotificationService. |
156 NotificationRegistrar registrar_; | 154 NotificationRegistrar registrar_; |
157 | 155 |
158 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 156 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
159 }; | 157 }; |
160 | 158 |
161 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_ | 159 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_ |
OLD | NEW |