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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 std::string CastContentBrowserClient::GetApplicationLocale() { | 99 std::string CastContentBrowserClient::GetApplicationLocale() { |
100 return "en-US"; | 100 return "en-US"; |
101 } | 101 } |
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::Type resource_type, | 109 content::ResourceType resource_type, |
110 bool overridable, | 110 bool overridable, |
111 bool strict_enforcement, | 111 bool strict_enforcement, |
112 const base::Callback<void(bool)>& callback, | 112 const base::Callback<void(bool)>& callback, |
113 content::CertificateRequestResultType* result) { | 113 content::CertificateRequestResultType* result) { |
114 // Allow developers to override certificate errors. | 114 // Allow developers to override certificate errors. |
115 // Otherwise, any fatal certificate errors will cause an abort. | 115 // Otherwise, any fatal certificate errors will cause an abort. |
116 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL; | 116 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL; |
117 return; | 117 return; |
118 } | 118 } |
119 | 119 |
(...skipping 17 matching lines...) Expand all Loading... |
137 } | 137 } |
138 | 138 |
139 void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess( | 139 void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess( |
140 const base::CommandLine& command_line, | 140 const base::CommandLine& command_line, |
141 int child_process_id, | 141 int child_process_id, |
142 std::vector<content::FileDescriptorInfo>* mappings) { | 142 std::vector<content::FileDescriptorInfo>* mappings) { |
143 } | 143 } |
144 | 144 |
145 } // namespace shell | 145 } // namespace shell |
146 } // namespace chromecast | 146 } // namespace chromecast |
OLD | NEW |