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

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 4 years 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: 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 9d1756dec89cfc08ab87e015aae4ddf86b281c50..721a7a2a9e095813af7893b78d914b28b74c0e77 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"
@@ -94,7 +95,6 @@ class Origin;
namespace storage {
class FileSystemBackend;
-class QuotaEvictionPolicy;
}
namespace content {
@@ -121,6 +121,7 @@ class RenderViewHost;
class ResourceContext;
class SiteInstance;
class SpeechRecognitionManagerDelegate;
+class StoragePartition;
class TracingDelegate;
class VpnServiceProxy;
class WebContents;
@@ -456,10 +457,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

Powered by Google App Engine
This is Rietveld 408576698