Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 242483003: Move CaptivePortalDetector to src/components/captive_portal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/captive_portal/testing_utils.cc ('k') | chrome/browser/chromeos/login/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 1856
1857 prerender::PrerenderContents* prerender_contents = 1857 prerender::PrerenderContents* prerender_contents =
1858 prerender::PrerenderContents::FromWebContents(tab); 1858 prerender::PrerenderContents::FromWebContents(tab);
1859 if (prerender_contents) { 1859 if (prerender_contents) {
1860 prerender_contents->Destroy(prerender::FINAL_STATUS_SSL_ERROR); 1860 prerender_contents->Destroy(prerender::FINAL_STATUS_SSL_ERROR);
1861 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL; 1861 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL;
1862 return; 1862 return;
1863 } 1863 }
1864 1864
1865 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 1865 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
1866 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper = 1866 CaptivePortalTabHelper* captive_portal_tab_helper =
1867 captive_portal::CaptivePortalTabHelper::FromWebContents(tab); 1867 CaptivePortalTabHelper::FromWebContents(tab);
1868 if (captive_portal_tab_helper) 1868 if (captive_portal_tab_helper)
1869 captive_portal_tab_helper->OnSSLCertError(ssl_info); 1869 captive_portal_tab_helper->OnSSLCertError(ssl_info);
1870 #endif 1870 #endif
1871 1871
1872 // Otherwise, display an SSL blocking page. 1872 // Otherwise, display an SSL blocking page.
1873 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable, 1873 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable,
1874 strict_enforcement, callback); 1874 strict_enforcement, callback);
1875 } 1875 }
1876 1876
1877 void ChromeContentBrowserClient::SelectClientCertificate( 1877 void ChromeContentBrowserClient::SelectClientCertificate(
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
2677 switches::kDisableWebRtcEncryption, 2677 switches::kDisableWebRtcEncryption,
2678 }; 2678 };
2679 to_command_line->CopySwitchesFrom(from_command_line, 2679 to_command_line->CopySwitchesFrom(from_command_line,
2680 kWebRtcDevSwitchNames, 2680 kWebRtcDevSwitchNames,
2681 arraysize(kWebRtcDevSwitchNames)); 2681 arraysize(kWebRtcDevSwitchNames));
2682 } 2682 }
2683 } 2683 }
2684 #endif // defined(ENABLE_WEBRTC) 2684 #endif // defined(ENABLE_WEBRTC)
2685 2685
2686 } // namespace chrome 2686 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/captive_portal/testing_utils.cc ('k') | chrome/browser/chromeos/login/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698