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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // Called to determine if there were any processed SSL errors from request. | 91 // Called to determine if there were any processed SSL errors from request. |
92 CONTENT_EXPORT bool ProcessedSSLErrorFromRequest() const; | 92 CONTENT_EXPORT bool ProcessedSSLErrorFromRequest() const; |
93 | 93 |
94 // Entry point for navigation. This function begins the process of updating | 94 // Entry point for navigation. This function begins the process of updating |
95 // the security UI when the main frame navigates to a new URL. | 95 // the security UI when the main frame navigates to a new URL. |
96 // | 96 // |
97 // Called on the UI thread. | 97 // Called on the UI thread. |
98 virtual void Observe(int type, | 98 virtual void Observe(int type, |
99 const content::NotificationSource& source, | 99 const content::NotificationSource& source, |
100 const content::NotificationDetails& details); | 100 const content::NotificationDetails& details) OVERRIDE; |
101 | 101 |
102 private: | 102 private: |
103 // Entry points for notifications to which we subscribe. Note that | 103 // Entry points for notifications to which we subscribe. Note that |
104 // DidCommitProvisionalLoad uses the abstract NotificationDetails type since | 104 // DidCommitProvisionalLoad uses the abstract NotificationDetails type since |
105 // the type we need is in NavigationController which would create a circular | 105 // the type we need is in NavigationController which would create a circular |
106 // header file dependency. | 106 // header file dependency. |
107 void DidLoadFromMemoryCache(LoadFromMemoryCacheDetails* details); | 107 void DidLoadFromMemoryCache(LoadFromMemoryCacheDetails* details); |
108 void DidStartResourceResponse(ResourceRequestDetails* details); | 108 void DidStartResourceResponse(ResourceRequestDetails* details); |
109 void DidReceiveResourceRedirect(ResourceRedirectDetails* details); | 109 void DidReceiveResourceRedirect(ResourceRedirectDetails* details); |
110 void DidChangeSSLInternalState(); | 110 void DidChangeSSLInternalState(); |
(...skipping 11 matching lines...) Expand all Loading... |
122 // for the security UI of this tab. | 122 // for the security UI of this tab. |
123 NavigationController* controller_; | 123 NavigationController* controller_; |
124 | 124 |
125 // Handles registering notifications with the NotificationService. | 125 // Handles registering notifications with the NotificationService. |
126 content::NotificationRegistrar registrar_; | 126 content::NotificationRegistrar registrar_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 128 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
129 }; | 129 }; |
130 | 130 |
131 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 131 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
OLD | NEW |