| 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 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 if (prerender_manager && prerender_manager->IsWebContentsPrerendering(tab)) { | 1179 if (prerender_manager && prerender_manager->IsWebContentsPrerendering(tab)) { |
| 1180 if (prerender_manager->prerender_tracker()->TryCancel( | 1180 if (prerender_manager->prerender_tracker()->TryCancel( |
| 1181 render_process_id, render_view_id, | 1181 render_process_id, render_view_id, |
| 1182 prerender::FINAL_STATUS_SSL_ERROR)) { | 1182 prerender::FINAL_STATUS_SSL_ERROR)) { |
| 1183 *cancel_request = true; | 1183 *cancel_request = true; |
| 1184 return; | 1184 return; |
| 1185 } | 1185 } |
| 1186 } | 1186 } |
| 1187 | 1187 |
| 1188 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 1188 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 1189 TabContents* tab_contents = TabContents::FromWebContents(tab); | 1189 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper = |
| 1190 if (tab_contents) | 1190 captive_portal::CaptivePortalTabHelper::FromWebContents(tab); |
| 1191 tab_contents->captive_portal_tab_helper()->OnSSLCertError(ssl_info); | 1191 if (captive_portal_tab_helper) |
| 1192 captive_portal_tab_helper->OnSSLCertError(ssl_info); |
| 1192 #endif | 1193 #endif |
| 1193 | 1194 |
| 1194 // Otherwise, display an SSL blocking page. | 1195 // Otherwise, display an SSL blocking page. |
| 1195 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable, | 1196 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable, |
| 1196 strict_enforcement, callback); | 1197 strict_enforcement, callback); |
| 1197 } | 1198 } |
| 1198 | 1199 |
| 1199 void ChromeContentBrowserClient::SelectClientCertificate( | 1200 void ChromeContentBrowserClient::SelectClientCertificate( |
| 1200 int render_process_id, | 1201 int render_process_id, |
| 1201 int render_view_id, | 1202 int render_view_id, |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1787 partition_id = extension->id(); | 1788 partition_id = extension->id(); |
| 1788 } | 1789 } |
| 1789 | 1790 |
| 1790 // Enforce that IsValidStoragePartitionId() implementation stays in sync. | 1791 // Enforce that IsValidStoragePartitionId() implementation stays in sync. |
| 1791 DCHECK(IsValidStoragePartitionId(browser_context, partition_id)); | 1792 DCHECK(IsValidStoragePartitionId(browser_context, partition_id)); |
| 1792 return partition_id; | 1793 return partition_id; |
| 1793 } | 1794 } |
| 1794 | 1795 |
| 1795 | 1796 |
| 1796 } // namespace chrome | 1797 } // namespace chrome |
| OLD | NEW |