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

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

Issue 1221523003: Add a SiteEngagementEvictionPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get_total_engagement_points
Patch Set: remove unnecessary destructor Created 5 years, 3 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 unified diff | Download patch
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_TEMPORARY_STORAGE_EVICTOR_H_ 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
6 #define STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ 6 #define STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 private: 90 private:
91 friend class content::QuotaTemporaryStorageEvictorTest; 91 friend class content::QuotaTemporaryStorageEvictorTest;
92 92
93 void StartEvictionTimerWithDelay(int delay_ms); 93 void StartEvictionTimerWithDelay(int delay_ms);
94 void ConsiderEviction(); 94 void ConsiderEviction();
95 void OnGotUsageAndQuotaForEviction( 95 void OnGotUsageAndQuotaForEviction(
96 QuotaStatusCode status, 96 QuotaStatusCode status,
97 const UsageAndQuota& quota_and_usage); 97 const UsageAndQuota& quota_and_usage);
98 void OnGotLRUOrigin(const GURL& origin); 98 void OnGotEvictionOrigin(const GURL& origin);
99 void OnEvictionComplete(QuotaStatusCode status); 99 void OnEvictionComplete(QuotaStatusCode status);
100 100
101 void OnEvictionRoundStarted(); 101 void OnEvictionRoundStarted();
102 void OnEvictionRoundFinished(); 102 void OnEvictionRoundFinished();
103 103
104 // This is only used for tests. 104 // This is only used for tests.
105 void set_repeated_eviction(bool repeated_eviction) { 105 void set_repeated_eviction(bool repeated_eviction) {
106 repeated_eviction_ = repeated_eviction; 106 repeated_eviction_ = repeated_eviction;
107 } 107 }
108 108
(...skipping 16 matching lines...) Expand all
125 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_; 125 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_;
126 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_; 126 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_;
127 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_; 127 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_;
128 128
129 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); 129 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor);
130 }; 130 };
131 131
132 } // namespace storage 132 } // namespace storage
133 133
134 #endif // STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ 134 #endif // STORAGE_BROWSER_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
OLDNEW
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | storage/browser/quota/quota_temporary_storage_evictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698