| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/shell/browser/cast_content_browser_client.h" | 5 #include "chromecast/shell/browser/cast_content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chromecast/shell/browser/cast_browser_context.h" | 8 #include "chromecast/shell/browser/cast_browser_context.h" |
| 9 #include "chromecast/shell/browser/cast_browser_main_parts.h" | 9 #include "chromecast/shell/browser/cast_browser_main_parts.h" |
| 10 #include "chromecast/shell/browser/geolocation/cast_access_token_store.h" | 10 #include "chromecast/shell/browser/geolocation/cast_access_token_store.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 void CastContentBrowserClient::AllowCertificateError( | 103 void CastContentBrowserClient::AllowCertificateError( |
| 104 int render_process_id, | 104 int render_process_id, |
| 105 int render_view_id, | 105 int render_view_id, |
| 106 int cert_error, | 106 int cert_error, |
| 107 const net::SSLInfo& ssl_info, | 107 const net::SSLInfo& ssl_info, |
| 108 const GURL& request_url, | 108 const GURL& request_url, |
| 109 content::ResourceType resource_type, | 109 content::ResourceType resource_type, |
| 110 bool overridable, | 110 bool overridable, |
| 111 bool strict_enforcement, | 111 bool strict_enforcement, |
| 112 bool expired_previous_decision, |
| 112 const base::Callback<void(bool)>& callback, | 113 const base::Callback<void(bool)>& callback, |
| 113 content::CertificateRequestResultType* result) { | 114 content::CertificateRequestResultType* result) { |
| 114 // Allow developers to override certificate errors. | 115 // Allow developers to override certificate errors. |
| 115 // Otherwise, any fatal certificate errors will cause an abort. | 116 // Otherwise, any fatal certificate errors will cause an abort. |
| 116 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL; | 117 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL; |
| 117 return; | 118 return; |
| 118 } | 119 } |
| 119 | 120 |
| 120 bool CastContentBrowserClient::CanCreateWindow( | 121 bool CastContentBrowserClient::CanCreateWindow( |
| 121 const GURL& opener_url, | 122 const GURL& opener_url, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 137 } | 138 } |
| 138 | 139 |
| 139 void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess( | 140 void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess( |
| 140 const base::CommandLine& command_line, | 141 const base::CommandLine& command_line, |
| 141 int child_process_id, | 142 int child_process_id, |
| 142 std::vector<content::FileDescriptorInfo>* mappings) { | 143 std::vector<content::FileDescriptorInfo>* mappings) { |
| 143 } | 144 } |
| 144 | 145 |
| 145 } // namespace shell | 146 } // namespace shell |
| 146 } // namespace chromecast | 147 } // namespace chromecast |
| OLD | NEW |