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

Unified Diff: content/public/browser/content_browser_client.h

Issue 2592793002: Revert of Change how the quota system computes the total poolsize for temporary storage (Closed)
Patch Set: 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
« 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 a7d5b8b81d30790bc14aefc72f7cd6feb410b824..44dcf998adef78bbe373190bc3b6615802c57bb8 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -32,7 +32,6 @@
#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"
@@ -101,6 +100,7 @@ class Origin;
namespace storage {
class FileSystemBackend;
+class QuotaEvictionPolicy;
}
namespace content {
@@ -127,7 +127,6 @@ class RenderViewHost;
class ResourceContext;
class SiteInstance;
class SpeechRecognitionManagerDelegate;
-class StoragePartition;
class TracingDelegate;
class VpnServiceProxy;
class WebContents;
@@ -463,13 +462,10 @@ class CONTENT_EXPORT ContentBrowserClient {
// Create and return a new quota permission context.
virtual QuotaPermissionContext* CreateQuotaPermissionContext();
- // 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);
+ // Gives the embedder a chance to register a custom QuotaEvictionPolicy for
+ // temporary storage.
+ virtual std::unique_ptr<storage::QuotaEvictionPolicy>
+ GetTemporaryStorageEvictionPolicy(BrowserContext* context);
// 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