| 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" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // this function as the entry point for our mixed content detection. | 70 // this function as the entry point for our mixed content detection. |
| 71 // | 71 // |
| 72 // TODO(jcampan): Implement a way to just cancel the request. This is not | 72 // TODO(jcampan): Implement a way to just cancel the request. This is not |
| 73 // straight-forward as canceling a request that has not been started will | 73 // straight-forward as canceling a request that has not been started will |
| 74 // not remove from the pending_requests_ of the ResourceDispatcherHost. | 74 // not remove from the pending_requests_ of the ResourceDispatcherHost. |
| 75 // Called on the IO thread. | 75 // Called on the IO thread. |
| 76 static bool ShouldStartRequest(ResourceDispatcherHost* resource_dispatcher, | 76 static bool ShouldStartRequest(ResourceDispatcherHost* resource_dispatcher, |
| 77 URLRequest* request, | 77 URLRequest* request, |
| 78 MessageLoop* ui_loop); | 78 MessageLoop* ui_loop); |
| 79 | 79 |
| 80 // Mixed content entry points. |
| 81 void DidDisplayInsecureContent(); |
| 82 void DidRunInsecureContent(const std::string& security_origin); |
| 83 |
| 80 // Entry point for navigation. This function begins the process of updating | 84 // Entry point for navigation. This function begins the process of updating |
| 81 // the security UI when the main frame navigates to a new URL. | 85 // the security UI when the main frame navigates to a new URL. |
| 82 // | 86 // |
| 83 // Called on the UI thread. | 87 // Called on the UI thread. |
| 84 virtual void Observe(NotificationType type, | 88 virtual void Observe(NotificationType type, |
| 85 const NotificationSource& source, | 89 const NotificationSource& source, |
| 86 const NotificationDetails& details); | 90 const NotificationDetails& details); |
| 87 | 91 |
| 88 // This entry point is called directly (instead of via the notification | 92 // This entry point is called directly (instead of via the notification |
| 89 // service) because we need more precise control of the order in which folks | 93 // service) because we need more precise control of the order in which folks |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // for the security UI of this tab. | 164 // for the security UI of this tab. |
| 161 NavigationController* controller_; | 165 NavigationController* controller_; |
| 162 | 166 |
| 163 // Handles registering notifications with the NotificationService. | 167 // Handles registering notifications with the NotificationService. |
| 164 NotificationRegistrar registrar_; | 168 NotificationRegistrar registrar_; |
| 165 | 169 |
| 166 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 170 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
| 167 }; | 171 }; |
| 168 | 172 |
| 169 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_ | 173 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_ |
| OLD | NEW |