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/browser/cast_content_browser_client.h" | 5 #include "chromecast/browser/cast_content_browser_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 const std::string locale(base::i18n::GetConfiguredLocale()); | 255 const std::string locale(base::i18n::GetConfiguredLocale()); |
256 return locale.empty() ? "en-US" : locale; | 256 return locale.empty() ? "en-US" : locale; |
257 } | 257 } |
258 | 258 |
259 content::QuotaPermissionContext* | 259 content::QuotaPermissionContext* |
260 CastContentBrowserClient::CreateQuotaPermissionContext() { | 260 CastContentBrowserClient::CreateQuotaPermissionContext() { |
261 return new CastQuotaPermissionContext(); | 261 return new CastQuotaPermissionContext(); |
262 } | 262 } |
263 | 263 |
264 void CastContentBrowserClient::AllowCertificateError( | 264 void CastContentBrowserClient::AllowCertificateError( |
265 int render_process_id, | 265 content::WebContents* web_contents, |
266 int render_view_id, | |
267 int cert_error, | 266 int cert_error, |
268 const net::SSLInfo& ssl_info, | 267 const net::SSLInfo& ssl_info, |
269 const GURL& request_url, | 268 const GURL& request_url, |
270 content::ResourceType resource_type, | 269 content::ResourceType resource_type, |
271 bool overridable, | 270 bool overridable, |
272 bool strict_enforcement, | 271 bool strict_enforcement, |
273 bool expired_previous_decision, | 272 bool expired_previous_decision, |
274 const base::Callback<void(bool)>& callback, | 273 const base::Callback<void(bool)>& callback, |
275 content::CertificateRequestResultType* result) { | 274 content::CertificateRequestResultType* result) { |
276 // Allow developers to override certificate errors. | 275 // Allow developers to override certificate errors. |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 process_type, dumps_path, false /* upload */); | 451 process_type, dumps_path, false /* upload */); |
453 // StartUploaderThread() even though upload is diferred. | 452 // StartUploaderThread() even though upload is diferred. |
454 // Breakpad-related memory is freed in the uploader thread. | 453 // Breakpad-related memory is freed in the uploader thread. |
455 crash_handler->StartUploaderThread(); | 454 crash_handler->StartUploaderThread(); |
456 return crash_handler; | 455 return crash_handler; |
457 } | 456 } |
458 #endif // !defined(OS_ANDROID) | 457 #endif // !defined(OS_ANDROID) |
459 | 458 |
460 } // namespace shell | 459 } // namespace shell |
461 } // namespace chromecast | 460 } // namespace chromecast |
OLD | NEW |