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

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: big delta 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { 221 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() {
222 return nullptr; 222 return nullptr;
223 } 223 }
224 224
225 std::unique_ptr<storage::QuotaEvictionPolicy> 225 std::unique_ptr<storage::QuotaEvictionPolicy>
226 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( 226 ContentBrowserClient::GetTemporaryStorageEvictionPolicy(
227 content::BrowserContext* context) { 227 content::BrowserContext* context) {
228 return std::unique_ptr<storage::QuotaEvictionPolicy>(); 228 return std::unique_ptr<storage::QuotaEvictionPolicy>();
229 } 229 }
230 230
231 void ContentBrowserClient::GetTemporaryStorageConfiguration(
232 BrowserContext* context,
233 const base::FilePath& partition_path, bool is_incognito,
234 const storage::TemporaryStorageConfigurationCallback& callback) {
235 // By default, no quota is provided, embedders should override.
236 callback.Run(storage::TemporaryStorageConfiguration());
237 }
238
231 void ContentBrowserClient::SelectClientCertificate( 239 void ContentBrowserClient::SelectClientCertificate(
232 WebContents* web_contents, 240 WebContents* web_contents,
233 net::SSLCertRequestInfo* cert_request_info, 241 net::SSLCertRequestInfo* cert_request_info,
234 std::unique_ptr<ClientCertificateDelegate> delegate) {} 242 std::unique_ptr<ClientCertificateDelegate> delegate) {}
235 243
236 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( 244 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL(
237 const GURL& url, ResourceContext* context) { 245 const GURL& url, ResourceContext* context) {
238 return nullptr; 246 return nullptr;
239 } 247 }
240 248
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 return false; 427 return false;
420 } 428 }
421 #endif // defined(OS_WIN) 429 #endif // defined(OS_WIN)
422 430
423 std::unique_ptr<base::Value> ContentBrowserClient::GetServiceManifestOverlay( 431 std::unique_ptr<base::Value> ContentBrowserClient::GetServiceManifestOverlay(
424 const std::string& name) { 432 const std::string& name) {
425 return nullptr; 433 return nullptr;
426 } 434 }
427 435
428 } // namespace content 436 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698