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

Side by Side Diff: chromecast/browser/cast_content_browser_client.cc

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698