| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 27 namespace content { | 27 namespace content { |
| 28 class NavigationEntryImpl; | 28 class NavigationEntryImpl; |
| 29 struct ResourceRedirectDetails; | 29 struct ResourceRedirectDetails; |
| 30 struct ResourceRequestDetails; | 30 struct ResourceRequestDetails; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace net { | 33 namespace net { |
| 34 class SSLInfo; | 34 class SSLInfo; |
| 35 } | 35 } |
| 36 | 36 |
| 37 // The SSLManager SSLManager controls the SSL UI elements in a TabContents. It | 37 // The SSLManager SSLManager controls the SSL UI elements in a WebContents. It |
| 38 // listens for various events that influence when these elements should or | 38 // listens for various events that influence when these elements should or |
| 39 // should not be displayed and adjusts them accordingly. | 39 // should not be displayed and adjusts them accordingly. |
| 40 // | 40 // |
| 41 // There is one SSLManager per tab. | 41 // There is one SSLManager per tab. |
| 42 // The security state (secure/insecure) is stored in the navigation entry. | 42 // The security state (secure/insecure) is stored in the navigation entry. |
| 43 // Along with it are stored any SSL error code and the associated cert. | 43 // Along with it are stored any SSL error code and the associated cert. |
| 44 | 44 |
| 45 class SSLManager : public content::NotificationObserver { | 45 class SSLManager : public content::NotificationObserver { |
| 46 public: | 46 public: |
| 47 // Entry point for SSLCertificateErrors. This function begins the process | 47 // Entry point for SSLCertificateErrors. This function begins the process |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // for the security UI of this tab. | 115 // for the security UI of this tab. |
| 116 NavigationControllerImpl* controller_; | 116 NavigationControllerImpl* controller_; |
| 117 | 117 |
| 118 // Handles registering notifications with the NotificationService. | 118 // Handles registering notifications with the NotificationService. |
| 119 content::NotificationRegistrar registrar_; | 119 content::NotificationRegistrar registrar_; |
| 120 | 120 |
| 121 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 121 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 124 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
| OLD | NEW |