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

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: removed QuotaEvictionPolicy 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 218 }
218 219
219 std::string ContentBrowserClient::GetWebBluetoothBlacklist() { 220 std::string ContentBrowserClient::GetWebBluetoothBlacklist() {
220 return std::string(); 221 return std::string();
221 } 222 }
222 223
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 void ContentBrowserClient::GetQuotaSettings(
228 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( 229 BrowserContext* context,
229 content::BrowserContext* context) { 230 StoragePartition* partition,
230 return std::unique_ptr<storage::QuotaEvictionPolicy>(); 231 const storage::OptionalQuotaSettingsCallback& callback) {
232 // By default, no quota is provided, embedders should override.
233 LOG(WARNING) << "You must override ContentBrowserClient::GetQuotaSettings "
234 << "to provide storage quota.";
kinuko 2016/11/15 07:39:10 We don't seem to have this kind of WARNING logs el
michaeln 2016/11/21 21:52:48 Done, I moved the logging into the QuotaManager wh
235 callback.Run(storage::GetNoQuotaSettings());
231 } 236 }
232 237
233 void ContentBrowserClient::SelectClientCertificate( 238 void ContentBrowserClient::SelectClientCertificate(
234 WebContents* web_contents, 239 WebContents* web_contents,
235 net::SSLCertRequestInfo* cert_request_info, 240 net::SSLCertRequestInfo* cert_request_info,
236 std::unique_ptr<ClientCertificateDelegate> delegate) {} 241 std::unique_ptr<ClientCertificateDelegate> delegate) {}
237 242
238 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( 243 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL(
239 const GURL& url, ResourceContext* context) { 244 const GURL& url, ResourceContext* context) {
240 return nullptr; 245 return nullptr;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 const std::string& name) { 425 const std::string& name) {
421 return nullptr; 426 return nullptr;
422 } 427 }
423 428
424 std::unique_ptr<MemoryCoordinatorDelegate> 429 std::unique_ptr<MemoryCoordinatorDelegate>
425 ContentBrowserClient::GetMemoryCoordinatorDelegate() { 430 ContentBrowserClient::GetMemoryCoordinatorDelegate() {
426 return std::unique_ptr<MemoryCoordinatorDelegate>(); 431 return std::unique_ptr<MemoryCoordinatorDelegate>();
427 } 432 }
428 433
429 } // namespace content 434 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698