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

Unified Diff: content/browser/storage_partition_impl.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/browser/quota/storage_monitor_unittest.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl.h
diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h
index 2c20f2e08033f19d710b4a568aa0e726268e31c4..dfdccffdafd7c0c240069796169614c65a5553e4 100644
--- a/content/browser/storage_partition_impl.h
+++ b/content/browser/storage_partition_impl.h
@@ -14,6 +14,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/weak_ptr.h"
#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/background_sync/background_sync_context.h"
#include "content/browser/broadcast_channel/broadcast_channel_provider.h"
@@ -165,24 +166,9 @@ class CONTENT_EXPORT StoragePartitionImpl
bool in_memory,
const base::FilePath& relative_partition_path);
- StoragePartitionImpl(
- BrowserContext* browser_context,
- const base::FilePath& partition_path,
- storage::QuotaManager* quota_manager,
- ChromeAppCacheService* appcache_service,
- storage::FileSystemContext* filesystem_context,
- storage::DatabaseTracker* database_tracker,
- DOMStorageContextWrapper* dom_storage_context,
- IndexedDBContextImpl* indexed_db_context,
- CacheStorageContextImpl* cache_storage_context,
- ServiceWorkerContextWrapper* service_worker_context,
- PushMessagingContext* push_messaging_context,
- storage::SpecialStoragePolicy* special_storage_policy,
- HostZoomLevelContext* host_zoom_level_context,
- PlatformNotificationContextImpl* platform_notification_context,
- BackgroundSyncContext* background_sync_context,
- PaymentAppContextImpl* payment_app_context,
- scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider);
+ StoragePartitionImpl(BrowserContext* browser_context,
+ const base::FilePath& partition_path,
+ storage::SpecialStoragePolicy* special_storage_policy);
// We will never have both remove_origin be populated and a cookie_matcher.
void ClearDataImpl(uint32_t remove_mask,
@@ -212,6 +198,10 @@ class CONTENT_EXPORT StoragePartitionImpl
void SetMediaURLRequestContext(
net::URLRequestContextGetter* media_url_request_context);
+ // Function used by the quota system to ask the embedder for the
+ // storage configuration info.
+ void GetQuotaSettings(const storage::OptionalQuotaSettingsCallback& callback);
+
base::FilePath partition_path_;
scoped_refptr<net::URLRequestContextGetter> url_request_context_;
scoped_refptr<net::URLRequestContextGetter> media_url_request_context_;
@@ -238,6 +228,8 @@ class CONTENT_EXPORT StoragePartitionImpl
// BrowserContext is destroyed, |this| will be destroyed too.
BrowserContext* browser_context_;
+ base::WeakPtrFactory<StoragePartitionImpl> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
};
« no previous file with comments | « content/browser/quota/storage_monitor_unittest.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698