| 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 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1846 | 1846 |
| 1847 prerender::PrerenderContents* prerender_contents = | 1847 prerender::PrerenderContents* prerender_contents = |
| 1848 prerender::PrerenderContents::FromWebContents(tab); | 1848 prerender::PrerenderContents::FromWebContents(tab); |
| 1849 if (prerender_contents) { | 1849 if (prerender_contents) { |
| 1850 prerender_contents->Destroy(prerender::FINAL_STATUS_SSL_ERROR); | 1850 prerender_contents->Destroy(prerender::FINAL_STATUS_SSL_ERROR); |
| 1851 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL; | 1851 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL; |
| 1852 return; | 1852 return; |
| 1853 } | 1853 } |
| 1854 | 1854 |
| 1855 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 1855 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 1856 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper = | 1856 CaptivePortalTabHelper* captive_portal_tab_helper = |
| 1857 captive_portal::CaptivePortalTabHelper::FromWebContents(tab); | 1857 CaptivePortalTabHelper::FromWebContents(tab); |
| 1858 if (captive_portal_tab_helper) | 1858 if (captive_portal_tab_helper) |
| 1859 captive_portal_tab_helper->OnSSLCertError(ssl_info); | 1859 captive_portal_tab_helper->OnSSLCertError(ssl_info); |
| 1860 #endif | 1860 #endif |
| 1861 | 1861 |
| 1862 // Otherwise, display an SSL blocking page. | 1862 // Otherwise, display an SSL blocking page. |
| 1863 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable, | 1863 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable, |
| 1864 strict_enforcement, callback); | 1864 strict_enforcement, callback); |
| 1865 } | 1865 } |
| 1866 | 1866 |
| 1867 void ChromeContentBrowserClient::SelectClientCertificate( | 1867 void ChromeContentBrowserClient::SelectClientCertificate( |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2716 switches::kDisableWebRtcEncryption, | 2716 switches::kDisableWebRtcEncryption, |
| 2717 }; | 2717 }; |
| 2718 to_command_line->CopySwitchesFrom(from_command_line, | 2718 to_command_line->CopySwitchesFrom(from_command_line, |
| 2719 kWebRtcDevSwitchNames, | 2719 kWebRtcDevSwitchNames, |
| 2720 arraysize(kWebRtcDevSwitchNames)); | 2720 arraysize(kWebRtcDevSwitchNames)); |
| 2721 } | 2721 } |
| 2722 } | 2722 } |
| 2723 #endif // defined(ENABLE_WEBRTC) | 2723 #endif // defined(ENABLE_WEBRTC) |
| 2724 | 2724 |
| 2725 } // namespace chrome | 2725 } // namespace chrome |
| OLD | NEW |