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

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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { 224 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() {
224 return nullptr; 225 return nullptr;
225 } 226 }
226 227
227 std::unique_ptr<storage::QuotaEvictionPolicy> 228 std::unique_ptr<storage::QuotaEvictionPolicy>
228 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( 229 ContentBrowserClient::GetTemporaryStorageEvictionPolicy(
229 content::BrowserContext* context) { 230 content::BrowserContext* context) {
230 return std::unique_ptr<storage::QuotaEvictionPolicy>(); 231 return std::unique_ptr<storage::QuotaEvictionPolicy>();
231 } 232 }
232 233
234 void ContentBrowserClient::GetQuotaSettings(
235 BrowserContext* context,
236 const base::FilePath& partition_path,
237 bool is_incognito,
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());
243 }
244
233 void ContentBrowserClient::SelectClientCertificate( 245 void ContentBrowserClient::SelectClientCertificate(
234 WebContents* web_contents, 246 WebContents* web_contents,
235 net::SSLCertRequestInfo* cert_request_info, 247 net::SSLCertRequestInfo* cert_request_info,
236 std::unique_ptr<ClientCertificateDelegate> delegate) {} 248 std::unique_ptr<ClientCertificateDelegate> delegate) {}
237 249
238 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( 250 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL(
239 const GURL& url, ResourceContext* context) { 251 const GURL& url, ResourceContext* context) {
240 return nullptr; 252 return nullptr;
241 } 253 }
242 254
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 const std::string& name) { 432 const std::string& name) {
421 return nullptr; 433 return nullptr;
422 } 434 }
423 435
424 std::unique_ptr<MemoryCoordinatorDelegate> 436 std::unique_ptr<MemoryCoordinatorDelegate>
425 ContentBrowserClient::GetMemoryCoordinatorDelegate() { 437 ContentBrowserClient::GetMemoryCoordinatorDelegate() {
426 return std::unique_ptr<MemoryCoordinatorDelegate>(); 438 return std::unique_ptr<MemoryCoordinatorDelegate>();
427 } 439 }
428 440
429 } // namespace content 441 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698