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

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

Issue 1403673002: Add Quota.TimeSinceOriginEvicted UMA histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 2 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
Index: storage/browser/quota/quota_manager.h
diff --git a/storage/browser/quota/quota_manager.h b/storage/browser/quota/quota_manager.h
index 3e053887b1ff41fb41810af6b5bfa9f134f6aa3d..860d08316439d31b409b8a8eb6e4304177b2fe4d 100644
--- a/storage/browser/quota/quota_manager.h
+++ b/storage/browser/quota/quota_manager.h
@@ -266,6 +266,8 @@ class STORAGE_EXPORT QuotaManager
static const int kEvictionIntervalInMilliSeconds;
+ static const char kTimeBetweenOriginEvictionsHistogram[];
+
// These are kept non-const so that test code can change the value.
// TODO(kinuko): Make this a real const value and add a proper way to set
// the quota for syncable storage. (http://crbug.com/155488)
@@ -361,9 +363,17 @@ class STORAGE_EXPORT QuotaManager
void DumpQuotaTable(const DumpQuotaTableCallback& callback);
void DumpOriginInfoTable(const DumpOriginInfoTableCallback& callback);
+ void DeleteOriginDataInternal(const GURL& origin,
+ StorageType type,
+ int quota_client_mask,
+ bool is_eviction,
+ const StatusCallback& callback);
+
// Methods for eviction logic.
void StartEviction();
- void DeleteOriginFromDatabase(const GURL& origin, StorageType type);
+ void DeleteOriginFromDatabase(const GURL& origin,
+ StorageType type,
+ bool is_eviction);
void DidOriginDataEvicted(QuotaStatusCode status);

Powered by Google App Engine
This is Rietveld 408576698