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

Side by Side Diff: storage/browser/quota/quota_manager.h

Issue 1424653002: Add access count and time-since-accessed histograms to temp storage eviction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quota_uma
Patch Set: fix test Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « storage/browser/quota/quota_database.cc ('k') | storage/browser/quota/quota_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_
6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ 6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 static const int64 kPerHostPersistentQuotaLimit; 271 static const int64 kPerHostPersistentQuotaLimit;
272 272
273 static const char kDatabaseName[]; 273 static const char kDatabaseName[];
274 274
275 static const int kThresholdOfErrorsToBeBlacklisted; 275 static const int kThresholdOfErrorsToBeBlacklisted;
276 276
277 static const int kEvictionIntervalInMilliSeconds; 277 static const int kEvictionIntervalInMilliSeconds;
278 278
279 static const char kTimeBetweenRepeatedOriginEvictionsHistogram[]; 279 static const char kTimeBetweenRepeatedOriginEvictionsHistogram[];
280 static const char kEvictedOriginAccessedCountHistogram[];
281 static const char kEvictedOriginTimeSinceAccessHistogram[];
280 282
281 // These are kept non-const so that test code can change the value. 283 // These are kept non-const so that test code can change the value.
282 // TODO(kinuko): Make this a real const value and add a proper way to set 284 // TODO(kinuko): Make this a real const value and add a proper way to set
283 // the quota for syncable storage. (http://crbug.com/155488) 285 // the quota for syncable storage. (http://crbug.com/155488)
284 static int64 kMinimumPreserveForSystem; 286 static int64 kMinimumPreserveForSystem;
285 static int64 kSyncableStorageDefaultHostQuota; 287 static int64 kSyncableStorageDefaultHostQuota;
286 288
287 protected: 289 protected:
288 ~QuotaManager() override; 290 ~QuotaManager() override;
289 291
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 498
497 struct QuotaManagerDeleter { 499 struct QuotaManagerDeleter {
498 static void Destruct(const QuotaManager* manager) { 500 static void Destruct(const QuotaManager* manager) {
499 manager->DeleteOnCorrectThread(); 501 manager->DeleteOnCorrectThread();
500 } 502 }
501 }; 503 };
502 504
503 } // namespace storage 505 } // namespace storage
504 506
505 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ 507 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_
OLDNEW
« no previous file with comments | « storage/browser/quota/quota_database.cc ('k') | storage/browser/quota/quota_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698