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

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, 2 months 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 "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/public/browser/client_certificate_delegate.h" 10 #include "content/public/browser/client_certificate_delegate.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { 223 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() {
224 return nullptr; 224 return nullptr;
225 } 225 }
226 226
227 std::unique_ptr<storage::QuotaEvictionPolicy> 227 std::unique_ptr<storage::QuotaEvictionPolicy>
228 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( 228 ContentBrowserClient::GetTemporaryStorageEvictionPolicy(
229 content::BrowserContext* context) { 229 content::BrowserContext* context) {
230 return std::unique_ptr<storage::QuotaEvictionPolicy>(); 230 return std::unique_ptr<storage::QuotaEvictionPolicy>();
231 } 231 }
232 232
233 void ContentBrowserClient::GetTemporaryStorageConfiguration(
234 BrowserContext* context,
235 const base::FilePath& partition_path, bool is_incognito,
236 const storage::TemporaryStorageConfigurationCallback& callback) {
237 // By default, no quota is provided, embedders should override.
238 callback.Run(storage::TemporaryStorageConfiguration());
239 }
240
233 void ContentBrowserClient::SelectClientCertificate( 241 void ContentBrowserClient::SelectClientCertificate(
234 WebContents* web_contents, 242 WebContents* web_contents,
235 net::SSLCertRequestInfo* cert_request_info, 243 net::SSLCertRequestInfo* cert_request_info,
236 std::unique_ptr<ClientCertificateDelegate> delegate) {} 244 std::unique_ptr<ClientCertificateDelegate> delegate) {}
237 245
238 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( 246 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL(
239 const GURL& url, ResourceContext* context) { 247 const GURL& url, ResourceContext* context) {
240 return nullptr; 248 return nullptr;
241 } 249 }
242 250
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 const std::string& name) { 432 const std::string& name) {
425 return nullptr; 433 return nullptr;
426 } 434 }
427 435
428 std::unique_ptr<MemoryCoordinatorDelegate> 436 std::unique_ptr<MemoryCoordinatorDelegate>
429 ContentBrowserClient::GetMemoryCoordinatorDelegate() { 437 ContentBrowserClient::GetMemoryCoordinatorDelegate() {
430 return std::unique_ptr<MemoryCoordinatorDelegate>(); 438 return std::unique_ptr<MemoryCoordinatorDelegate>();
431 } 439 }
432 440
433 } // namespace content 441 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698