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

Unified Diff: chrome/browser/browsing_data/cache_counter.h

Issue 2612033002: Count exact cache size for time ranges (Closed)
Patch Set: rebase Created 3 years, 11 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 | chrome/browser/browsing_data/cache_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/cache_counter.h
diff --git a/chrome/browser/browsing_data/cache_counter.h b/chrome/browser/browsing_data/cache_counter.h
index 04248e4f94eee53c27a48a42a169f14f91b152b9..eb78cf5448be1ed38108038c08796dcf5a9e4205 100644
--- a/chrome/browser/browsing_data/cache_counter.h
+++ b/chrome/browser/browsing_data/cache_counter.h
@@ -44,6 +44,9 @@ class CacheCounter : public browsing_data::BrowsingDataCounter {
// Used only for testing.
bool Pending();
+ // Used only for testing.
+ void SetTimeout(base::TimeDelta timeout);
+
private:
void Count() override;
void OnCacheSizeCalculated(bool is_upper_limit, int64_t bytes);
@@ -52,6 +55,7 @@ class CacheCounter : public browsing_data::BrowsingDataCounter {
Profile* profile_;
bool pending_;
+ base::TimeDelta timeout_;
base::WeakPtrFactory<CacheCounter> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/browsing_data/cache_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698