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

Side by Side Diff: content/public/browser/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "base/logging.h"
9 #include "build/build_config.h" 10 #include "build/build_config.h"
10 #include "content/public/browser/client_certificate_delegate.h" 11 #include "content/public/browser/client_certificate_delegate.h"
11 #include "content/public/browser/memory_coordinator_delegate.h" 12 #include "content/public/browser/memory_coordinator_delegate.h"
12 #include "content/public/browser/navigation_ui_data.h" 13 #include "content/public/browser/navigation_ui_data.h"
13 #include "content/public/browser/vpn_service_proxy.h" 14 #include "content/public/browser/vpn_service_proxy.h"
14 #include "content/public/common/sandbox_type.h" 15 #include "content/public/common/sandbox_type.h"
15 #include "media/base/cdm_factory.h" 16 #include "media/base/cdm_factory.h"
16 #include "storage/browser/quota/quota_manager.h" 17 #include "storage/browser/quota/quota_manager.h"
17 #include "ui/gfx/image/image_skia.h" 18 #include "ui/gfx/image/image_skia.h"
18 #include "url/gurl.h" 19 #include "url/gurl.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 225 }
225 226
226 std::string ContentBrowserClient::GetWebBluetoothBlacklist() { 227 std::string ContentBrowserClient::GetWebBluetoothBlacklist() {
227 return std::string(); 228 return std::string();
228 } 229 }
229 230
230 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { 231 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() {
231 return nullptr; 232 return nullptr;
232 } 233 }
233 234
234 std::unique_ptr<storage::QuotaEvictionPolicy> 235 void ContentBrowserClient::GetQuotaSettings(
235 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( 236 BrowserContext* context,
236 content::BrowserContext* context) { 237 StoragePartition* partition,
237 return std::unique_ptr<storage::QuotaEvictionPolicy>(); 238 const storage::OptionalQuotaSettingsCallback& callback) {
239 // By default, no quota is provided, embedders should override.
240 LOG(WARNING) << "You must override ContentBrowserClient::GetQuotaSettings "
241 << "to provide storage quota.";
242 callback.Run(storage::GetNoQuotaSettings());
238 } 243 }
239 244
240 void ContentBrowserClient::SelectClientCertificate( 245 void ContentBrowserClient::SelectClientCertificate(
241 WebContents* web_contents, 246 WebContents* web_contents,
242 net::SSLCertRequestInfo* cert_request_info, 247 net::SSLCertRequestInfo* cert_request_info,
243 std::unique_ptr<ClientCertificateDelegate> delegate) {} 248 std::unique_ptr<ClientCertificateDelegate> delegate) {}
244 249
245 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( 250 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL(
246 const GURL& url, ResourceContext* context) { 251 const GURL& url, ResourceContext* context) {
247 return nullptr; 252 return nullptr;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 const std::string& name) { 432 const std::string& name) {
428 return nullptr; 433 return nullptr;
429 } 434 }
430 435
431 std::unique_ptr<MemoryCoordinatorDelegate> 436 std::unique_ptr<MemoryCoordinatorDelegate>
432 ContentBrowserClient::GetMemoryCoordinatorDelegate() { 437 ContentBrowserClient::GetMemoryCoordinatorDelegate() {
433 return std::unique_ptr<MemoryCoordinatorDelegate>(); 438 return std::unique_ptr<MemoryCoordinatorDelegate>();
434 } 439 }
435 440
436 } // namespace content 441 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698