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 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 int* cert_status, | 65 int* cert_status, |
66 int* security_bits, | 66 int* security_bits, |
67 int* connection_status); | 67 int* connection_status); |
68 | 68 |
69 // Returns "<organization_name> [<country>]". | 69 // Returns "<organization_name> [<country>]". |
70 static string16 GetEVCertName(const net::X509Certificate& cert); | 70 static string16 GetEVCertName(const net::X509Certificate& cert); |
71 | 71 |
72 // Construct an SSLManager for the specified tab. | 72 // Construct an SSLManager for the specified tab. |
73 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used. | 73 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used. |
74 explicit SSLManager(NavigationController* controller); | 74 explicit SSLManager(NavigationController* controller); |
75 ~SSLManager(); | 75 virtual ~SSLManager(); |
76 | 76 |
77 SSLPolicy* policy() { return policy_.get(); } | 77 SSLPolicy* policy() { return policy_.get(); } |
78 SSLPolicyBackend* backend() { return &backend_; } | 78 SSLPolicyBackend* backend() { return &backend_; } |
79 | 79 |
80 // The navigation controller associated with this SSLManager. The | 80 // The navigation controller associated with this SSLManager. The |
81 // NavigationController is guaranteed to outlive the SSLManager. | 81 // NavigationController is guaranteed to outlive the SSLManager. |
82 NavigationController* controller() { return controller_; } | 82 NavigationController* controller() { return controller_; } |
83 | 83 |
84 // This entry point is called directly (instead of via the notification | 84 // This entry point is called directly (instead of via the notification |
85 // service) because we need more precise control of the order in which folks | 85 // service) because we need more precise control of the order in which folks |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // for the security UI of this tab. | 123 // for the security UI of this tab. |
124 NavigationController* controller_; | 124 NavigationController* controller_; |
125 | 125 |
126 // Handles registering notifications with the NotificationService. | 126 // Handles registering notifications with the NotificationService. |
127 NotificationRegistrar registrar_; | 127 NotificationRegistrar registrar_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 129 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
130 }; | 130 }; |
131 | 131 |
132 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_ | 132 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_ |
OLD | NEW |