| 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 if (prerender_manager && prerender_manager->IsWebContentsPrerendering(tab)) { | 1115 if (prerender_manager && prerender_manager->IsWebContentsPrerendering(tab)) { |
| 1116 if (prerender_manager->prerender_tracker()->TryCancel( | 1116 if (prerender_manager->prerender_tracker()->TryCancel( |
| 1117 render_process_id, render_view_id, | 1117 render_process_id, render_view_id, |
| 1118 prerender::FINAL_STATUS_SSL_ERROR)) { | 1118 prerender::FINAL_STATUS_SSL_ERROR)) { |
| 1119 *cancel_request = true; | 1119 *cancel_request = true; |
| 1120 return; | 1120 return; |
| 1121 } | 1121 } |
| 1122 } | 1122 } |
| 1123 | 1123 |
| 1124 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 1124 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 1125 TabContents* tab_contents = TabContents::FromWebContents(tab); | 1125 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper = |
| 1126 if (tab_contents) | 1126 captive_portal::CaptivePortalTabHelper::FromWebContents(tab); |
| 1127 tab_contents->captive_portal_tab_helper()->OnSSLCertError(ssl_info); | 1127 if (captive_portal_tab_helper) |
| 1128 captive_portal_tab_helper->OnSSLCertError(ssl_info); |
| 1128 #endif | 1129 #endif |
| 1129 | 1130 |
| 1130 // Otherwise, display an SSL blocking page. | 1131 // Otherwise, display an SSL blocking page. |
| 1131 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable, | 1132 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable, |
| 1132 strict_enforcement, callback); | 1133 strict_enforcement, callback); |
| 1133 } | 1134 } |
| 1134 | 1135 |
| 1135 void ChromeContentBrowserClient::SelectClientCertificate( | 1136 void ChromeContentBrowserClient::SelectClientCertificate( |
| 1136 int render_process_id, | 1137 int render_process_id, |
| 1137 int render_view_id, | 1138 int render_view_id, |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1724 partition_id = extension->id(); | 1725 partition_id = extension->id(); |
| 1725 } | 1726 } |
| 1726 | 1727 |
| 1727 // Enforce that IsValidStoragePartitionId() implementation stays in sync. | 1728 // Enforce that IsValidStoragePartitionId() implementation stays in sync. |
| 1728 DCHECK(IsValidStoragePartitionId(browser_context, partition_id)); | 1729 DCHECK(IsValidStoragePartitionId(browser_context, partition_id)); |
| 1729 return partition_id; | 1730 return partition_id; |
| 1730 } | 1731 } |
| 1731 | 1732 |
| 1732 | 1733 |
| 1733 } // namespace chrome | 1734 } // namespace chrome |
| OLD | NEW |