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

Side by Side Diff: chrome/browser/chrome_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: more 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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 } 2112 }
2113 2113
2114 std::unique_ptr<storage::QuotaEvictionPolicy> 2114 std::unique_ptr<storage::QuotaEvictionPolicy>
2115 ChromeContentBrowserClient::GetTemporaryStorageEvictionPolicy( 2115 ChromeContentBrowserClient::GetTemporaryStorageEvictionPolicy(
2116 content::BrowserContext* context) { 2116 content::BrowserContext* context) {
2117 return SiteEngagementEvictionPolicy::IsEnabled() 2117 return SiteEngagementEvictionPolicy::IsEnabled()
2118 ? base::MakeUnique<SiteEngagementEvictionPolicy>(context) 2118 ? base::MakeUnique<SiteEngagementEvictionPolicy>(context)
2119 : nullptr; 2119 : nullptr;
2120 } 2120 }
2121 2121
2122 void ChromeContentBrowserClient::GetQuotaSettings(
2123 content::BrowserContext* context,
2124 content::StoragePartition* partition,
2125 const storage::OptionalQuotaSettingsCallback& callback) {
2126 content::BrowserThread::PostTaskAndReplyWithResult(
2127 content::BrowserThread::FILE, FROM_HERE,
2128 base::Bind(&storage::CalculateNominalDynamicSettings,
2129 partition->GetPath(), context->IsOffTheRecord()),
2130 callback);
2131 }
2132
2122 void ChromeContentBrowserClient::AllowCertificateError( 2133 void ChromeContentBrowserClient::AllowCertificateError(
2123 content::WebContents* web_contents, 2134 content::WebContents* web_contents,
2124 int cert_error, 2135 int cert_error,
2125 const net::SSLInfo& ssl_info, 2136 const net::SSLInfo& ssl_info,
2126 const GURL& request_url, 2137 const GURL& request_url,
2127 ResourceType resource_type, 2138 ResourceType resource_type,
2128 bool overridable, 2139 bool overridable,
2129 bool strict_enforcement, 2140 bool strict_enforcement,
2130 bool expired_previous_decision, 2141 bool expired_previous_decision,
2131 const base::Callback<void(content::CertificateRequestResultType)>& 2142 const base::Callback<void(content::CertificateRequestResultType)>&
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3237 kWebRtcDevSwitchNames, 3248 kWebRtcDevSwitchNames,
3238 arraysize(kWebRtcDevSwitchNames)); 3249 arraysize(kWebRtcDevSwitchNames));
3239 } 3250 }
3240 } 3251 }
3241 #endif // defined(ENABLE_WEBRTC) 3252 #endif // defined(ENABLE_WEBRTC)
3242 3253
3243 std::unique_ptr<content::MemoryCoordinatorDelegate> 3254 std::unique_ptr<content::MemoryCoordinatorDelegate>
3244 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { 3255 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() {
3245 return memory::ChromeMemoryCoordinatorDelegate::Create(); 3256 return memory::ChromeMemoryCoordinatorDelegate::Create();
3246 } 3257 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698