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

Unified Diff: chrome/browser/chrome_content_browser_client.h

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 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_content_browser_client.h
diff --git a/chrome/browser/chrome_content_browser_client.h b/chrome/browser/chrome_content_browser_client.h
index ab6d1781449764d4fd4c4168851829294005b92f..e792775dffa2126c6dee15f25084c39a5cb6bbe9 100644
--- a/chrome/browser/chrome_content_browser_client.h
+++ b/chrome/browser/chrome_content_browser_client.h
@@ -168,8 +168,11 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
const GURL& url,
content::ResourceContext* context) override;
content::QuotaPermissionContext* CreateQuotaPermissionContext() override;
- std::unique_ptr<storage::QuotaEvictionPolicy>
- GetTemporaryStorageEvictionPolicy(content::BrowserContext* context) override;
+ void GetQuotaSettings(
+ content::BrowserContext* context,
+ content::StoragePartition* partition,
+ const storage::OptionalQuotaSettingsCallback& callback) override;
+
void AllowCertificateError(
content::WebContents* web_contents,
int cert_error,
@@ -324,6 +327,7 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
private:
friend class DisableWebRtcEncryptionFlagTest;
+ friend class InProcessBrowserTest;
#if BUILDFLAG(ENABLE_WEBRTC)
// Copies disable WebRTC encryption switch depending on the channel.
@@ -354,6 +358,11 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
const base::Callback<void(bool)>& callback);
#endif
+ // The value pointed to by |settings| should remain valid until the
+ // the function is called again with a new value or a nullptr.
+ static void SetDefaultQuotaSettingsForTesting(
+ const storage::QuotaSettings *settings);
+
#if BUILDFLAG(ENABLE_PLUGINS)
// Set of origins that can use TCP/UDP private APIs from NaCl.
std::set<std::string> allowed_socket_origins_;
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698