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

Unified Diff: webkit/browser/quota/quota_manager.h

Issue 196573024: Proposal: Provide the ability to monitor the usage of origins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comment after thresholds were removed Created 6 years, 9 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 | « no previous file | webkit/browser/quota/storage_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/quota/quota_manager.h
diff --git a/webkit/browser/quota/quota_manager.h b/webkit/browser/quota/quota_manager.h
index a6eeb837ac630108234fddbf08fe40b7f637b222..9dced1964e9c13208ce07ef6cd6baddade6c8005 100644
--- a/webkit/browser/quota/quota_manager.h
+++ b/webkit/browser/quota/quota_manager.h
@@ -25,6 +25,7 @@
#include "webkit/browser/quota/quota_database.h"
#include "webkit/browser/quota/quota_task.h"
#include "webkit/browser/quota/special_storage_policy.h"
+#include "webkit/browser/quota/storage_observer.h"
#include "webkit/browser/webkit_storage_browser_export.h"
namespace base {
@@ -225,6 +226,11 @@ class WEBKIT_STORAGE_BROWSER_EXPORT QuotaManager
bool ResetUsageTracker(StorageType type);
+ // Used to register/deregister observers that wish to monitor storage events.
+ void AddStorageObserver(const StorageObserver::MonitorParams& params,
+ StorageObserver* observer);
+ void RemoveStorageObserver(StorageObserver* observer);
+
// Determines the portion of the temp pool that can be
// utilized by a single host (ie. 5 for 20%).
static const int kPerHostTemporaryPortion;
« no previous file with comments | « no previous file | webkit/browser/quota/storage_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698