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

Unified Diff: content/public/browser/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
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 9f4c4b3ed567a87527974c91720c149ce4e53384..ad156d42c342fe311567ccf136eaf555d52854d1 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -31,6 +31,7 @@
#include "net/base/mime_util.h"
#include "net/cookies/canonical_cookie.h"
#include "storage/browser/fileapi/file_system_context.h"
+#include "storage/browser/quota/quota_manager.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/window_open_disposition.h"
@@ -99,7 +100,6 @@ class Origin;
namespace storage {
class FileSystemBackend;
-class QuotaEvictionPolicy;
}
namespace content {
@@ -127,6 +127,7 @@ class RenderViewHost;
class ResourceContext;
class SiteInstance;
class SpeechRecognitionManagerDelegate;
+class StoragePartition;
class TracingDelegate;
class VpnServiceProxy;
class WebContents;
@@ -455,10 +456,13 @@ class CONTENT_EXPORT ContentBrowserClient {
// Create and return a new quota permission context.
virtual QuotaPermissionContext* CreateQuotaPermissionContext();
- // Gives the embedder a chance to register a custom QuotaEvictionPolicy for
- // temporary storage.
- virtual std::unique_ptr<storage::QuotaEvictionPolicy>
- GetTemporaryStorageEvictionPolicy(BrowserContext* context);
+ // Allows the embedder to provide settings that determine the amount
+ // of disk space that may be used by content facing storage apis like
+ // IndexedDatabase and ServiceWorker::CacheStorage and others.
+ virtual void GetQuotaSettings(
+ content::BrowserContext* context,
+ content::StoragePartition* partition,
+ const storage::OptionalQuotaSettingsCallback& callback);
// Informs the embedder that a certificate error has occured. If
// |overridable| is true and if |strict_enforcement| is false, the user
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698