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 be14cefedf3b541443206341ca49157a10c34915..352f1568fd414fc785cd452bef003955c8e897f5 100644 |
--- a/chrome/browser/chrome_content_browser_client.h |
+++ b/chrome/browser/chrome_content_browser_client.h |
@@ -171,8 +171,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, |
@@ -326,6 +329,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. |
@@ -356,6 +360,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_; |