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

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: poolSize Created 4 years, 4 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { 226 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() {
227 return nullptr; 227 return nullptr;
228 } 228 }
229 229
230 std::unique_ptr<storage::QuotaEvictionPolicy> 230 std::unique_ptr<storage::QuotaEvictionPolicy>
231 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( 231 ContentBrowserClient::GetTemporaryStorageEvictionPolicy(
232 content::BrowserContext* context) { 232 content::BrowserContext* context) {
233 return std::unique_ptr<storage::QuotaEvictionPolicy>(); 233 return std::unique_ptr<storage::QuotaEvictionPolicy>();
234 } 234 }
235 235
236 namespace {
237 void DefaultTemporaryStorageConfigurationFunction(
238 const base::FilePath& profile_path, bool is_incognito,
239 storage::TemporaryStorageConfigurationCallback callback) {
240 // By default, no quota is provided, embedders must override.
241 callback.Run(storage::TemporaryStorageConfiguration());
242 }
243 } // namespace
244
245 storage::GetTemporaryStorageConfigurationFunc
246 ContentBrowserClient::GetTemporaryStorageConfigurationFunction(
kinuko 2016/07/27 14:23:25 I felt it might be slightly awkward to return a ca
michaeln 2016/07/27 19:57:47 That's another option, a virtual method that retur
247 BrowserContext* context) {
248 return base::Bind(&DefaultTemporaryStorageConfigurationFunction);
249 }
250
236 void ContentBrowserClient::SelectClientCertificate( 251 void ContentBrowserClient::SelectClientCertificate(
237 WebContents* web_contents, 252 WebContents* web_contents,
238 net::SSLCertRequestInfo* cert_request_info, 253 net::SSLCertRequestInfo* cert_request_info,
239 std::unique_ptr<ClientCertificateDelegate> delegate) {} 254 std::unique_ptr<ClientCertificateDelegate> delegate) {}
240 255
241 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( 256 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL(
242 const GURL& url, ResourceContext* context) { 257 const GURL& url, ResourceContext* context) {
243 return nullptr; 258 return nullptr;
244 } 259 }
245 260
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 #if defined(VIDEO_HOLE) 437 #if defined(VIDEO_HOLE)
423 ExternalVideoSurfaceContainer* 438 ExternalVideoSurfaceContainer*
424 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 439 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
425 WebContents* web_contents) { 440 WebContents* web_contents) {
426 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; 441 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348.";
427 return nullptr; 442 return nullptr;
428 } 443 }
429 #endif 444 #endif
430 445
431 } // namespace content 446 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698