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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 std::string CastContentBrowserClient::GetApplicationLocale() { | 315 std::string CastContentBrowserClient::GetApplicationLocale() { |
316 const std::string locale(base::i18n::GetConfiguredLocale()); | 316 const std::string locale(base::i18n::GetConfiguredLocale()); |
317 return locale.empty() ? "en-US" : locale; | 317 return locale.empty() ? "en-US" : locale; |
318 } | 318 } |
319 | 319 |
320 content::QuotaPermissionContext* | 320 content::QuotaPermissionContext* |
321 CastContentBrowserClient::CreateQuotaPermissionContext() { | 321 CastContentBrowserClient::CreateQuotaPermissionContext() { |
322 return new CastQuotaPermissionContext(); | 322 return new CastQuotaPermissionContext(); |
323 } | 323 } |
324 | 324 |
| 325 void CastContentBrowserClient::GetQuotaSettings( |
| 326 content::BrowserContext* context, |
| 327 const base::FilePath& partition_path, |
| 328 bool is_incognito, |
| 329 const storage::OptionalQuotaSettingsCallback& callback) { |
| 330 content::BrowserThread::PostTaskAndReplyWithResult( |
| 331 content::BrowserThread::FILE, FROM_HERE, |
| 332 base::Bind(&storage::CalculateNominalDynamicSettings, partition_path, |
| 333 is_incognito), |
| 334 callback); |
| 335 } |
| 336 |
325 void CastContentBrowserClient::AllowCertificateError( | 337 void CastContentBrowserClient::AllowCertificateError( |
326 content::WebContents* web_contents, | 338 content::WebContents* web_contents, |
327 int cert_error, | 339 int cert_error, |
328 const net::SSLInfo& ssl_info, | 340 const net::SSLInfo& ssl_info, |
329 const GURL& request_url, | 341 const GURL& request_url, |
330 content::ResourceType resource_type, | 342 content::ResourceType resource_type, |
331 bool overridable, | 343 bool overridable, |
332 bool strict_enforcement, | 344 bool strict_enforcement, |
333 bool expired_previous_decision, | 345 bool expired_previous_decision, |
334 const base::Callback<void(content::CertificateRequestResultType)>& | 346 const base::Callback<void(content::CertificateRequestResultType)>& |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 process_type, dumps_path, false /* upload */); | 558 process_type, dumps_path, false /* upload */); |
547 // StartUploaderThread() even though upload is diferred. | 559 // StartUploaderThread() even though upload is diferred. |
548 // Breakpad-related memory is freed in the uploader thread. | 560 // Breakpad-related memory is freed in the uploader thread. |
549 crash_handler->StartUploaderThread(); | 561 crash_handler->StartUploaderThread(); |
550 return crash_handler; | 562 return crash_handler; |
551 } | 563 } |
552 #endif // !defined(OS_ANDROID) | 564 #endif // !defined(OS_ANDROID) |
553 | 565 |
554 } // namespace shell | 566 } // namespace shell |
555 } // namespace chromecast | 567 } // namespace chromecast |
OLD | NEW |