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 #include "content/browser/ssl/ssl_manager.h" | 5 #include "content/browser/ssl/ssl_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 9 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
10 #include "content/browser/renderer_host/resource_request_info_impl.h" | 10 #include "content/browser/renderer_host/resource_request_info_impl.h" |
11 #include "content/browser/ssl/ssl_cert_error_handler.h" | 11 #include "content/browser/ssl/ssl_cert_error_handler.h" |
12 #include "content/browser/ssl/ssl_policy.h" | 12 #include "content/browser/ssl/ssl_policy.h" |
13 #include "content/browser/ssl/ssl_request_info.h" | 13 #include "content/browser/ssl/ssl_request_info.h" |
14 #include "content/browser/web_contents/navigation_entry_impl.h" | 14 #include "content/browser/web_contents/navigation_entry_impl.h" |
15 #include "content/browser/web_contents/web_contents_impl.h" | 15 #include "content/browser/web_contents/web_contents_impl.h" |
16 #include "content/common/ssl_status_serialization.h" | 16 #include "content/common/ssl_status_serialization.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/load_from_memory_cache_details.h" | 18 #include "content/public/browser/load_from_memory_cache_details.h" |
19 #include "content/public/browser/navigation_details.h" | 19 #include "content/public/browser/navigation_details.h" |
20 #include "content/public/browser/notification_service.h" | 20 #include "content/public/browser/notification_service.h" |
21 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
22 #include "content/public/browser/resource_request_details.h" | 22 #include "content/public/browser/resource_request_details.h" |
23 #include "content/public/common/ssl_status.h" | 23 #include "content/public/common/ssl_status.h" |
24 #include "net/url_request/url_request.h" | 24 #include "net/url_request/url_request.h" |
25 | 25 |
26 using content::BrowserThread; | 26 using content::BrowserThread; |
27 using content::NavigationController; | 27 using content::NavigationController; |
| 28 using content::NavigationControllerImpl; |
28 using content::NavigationEntry; | 29 using content::NavigationEntry; |
29 using content::NavigationEntryImpl; | 30 using content::NavigationEntryImpl; |
30 using content::ResourceDispatcherHostImpl; | 31 using content::ResourceDispatcherHostImpl; |
31 using content::ResourceRedirectDetails; | 32 using content::ResourceRedirectDetails; |
32 using content::ResourceRequestDetails; | 33 using content::ResourceRequestDetails; |
33 using content::ResourceRequestInfoImpl; | 34 using content::ResourceRequestInfoImpl; |
34 using content::SSLStatus; | 35 using content::SSLStatus; |
35 using content::WebContents; | 36 using content::WebContents; |
36 | 37 |
37 // static | 38 // static |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 224 |
224 policy()->UpdateEntry(entry, controller_->web_contents()); | 225 policy()->UpdateEntry(entry, controller_->web_contents()); |
225 | 226 |
226 if (!entry->GetSSL().Equals(original_ssl_status)) { | 227 if (!entry->GetSSL().Equals(original_ssl_status)) { |
227 content::NotificationService::current()->Notify( | 228 content::NotificationService::current()->Notify( |
228 content::NOTIFICATION_SSL_VISIBLE_STATE_CHANGED, | 229 content::NOTIFICATION_SSL_VISIBLE_STATE_CHANGED, |
229 content::Source<NavigationController>(controller_), | 230 content::Source<NavigationController>(controller_), |
230 content::NotificationService::NoDetails()); | 231 content::NotificationService::NoDetails()); |
231 } | 232 } |
232 } | 233 } |
OLD | NEW |