OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 public: | 46 public: |
47 // Entry point for SSLCertificateErrors. This function begins the process | 47 // Entry point for SSLCertificateErrors. This function begins the process |
48 // of resolving a certificate error during an SSL connection. SSLManager | 48 // of resolving a certificate error during an SSL connection. SSLManager |
49 // will adjust the security UI and either call |Cancel| or | 49 // will adjust the security UI and either call |Cancel| or |
50 // |ContinueDespiteLastError| on the net::URLRequest. | 50 // |ContinueDespiteLastError| on the net::URLRequest. |
51 // | 51 // |
52 // Called on the IO thread. | 52 // Called on the IO thread. |
53 static void OnSSLCertificateError(ResourceDispatcherHost* resource_dispatcher, | 53 static void OnSSLCertificateError(ResourceDispatcherHost* resource_dispatcher, |
54 net::URLRequest* request, | 54 net::URLRequest* request, |
55 const net::SSLInfo& ssl_info, | 55 const net::SSLInfo& ssl_info, |
56 bool is_hsts_host); | 56 bool fatal); |
57 | 57 |
58 // Called when SSL state for a host or tab changes. Broadcasts the | 58 // Called when SSL state for a host or tab changes. Broadcasts the |
59 // SSL_INTERNAL_STATE_CHANGED notification. | 59 // SSL_INTERNAL_STATE_CHANGED notification. |
60 static void NotifySSLInternalStateChanged( | 60 static void NotifySSLInternalStateChanged( |
61 NavigationControllerImpl* controller); | 61 NavigationControllerImpl* controller); |
62 | 62 |
63 // Convenience methods for serializing/deserializing the security info. | 63 // Convenience methods for serializing/deserializing the security info. |
64 static std::string SerializeSecurityInfo(int cert_id, | 64 static std::string SerializeSecurityInfo(int cert_id, |
65 net::CertStatus cert_status, | 65 net::CertStatus cert_status, |
66 int security_bits, | 66 int security_bits, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // for the security UI of this tab. | 126 // for the security UI of this tab. |
127 NavigationControllerImpl* controller_; | 127 NavigationControllerImpl* controller_; |
128 | 128 |
129 // Handles registering notifications with the NotificationService. | 129 // Handles registering notifications with the NotificationService. |
130 content::NotificationRegistrar registrar_; | 130 content::NotificationRegistrar registrar_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 132 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
133 }; | 133 }; |
134 | 134 |
135 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 135 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
OLD | NEW |