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

Unified Diff: components/precache/core/precache_database.cc

Issue 2335913002: Add daily quota for precache (Closed)
Patch Set: Added quota proto Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/precache/core/precache_database.cc
diff --git a/components/precache/core/precache_database.cc b/components/precache/core/precache_database.cc
index f513410c98cea69b06a3edfd4f2dcdf32df4b16e..4d22ee1efae239bb73aef4f48a41c9e29ec9b1e2 100644
--- a/components/precache/core/precache_database.cc
+++ b/components/precache/core/precache_database.cc
@@ -430,6 +430,14 @@ void PrecacheDatabase::DeleteUnfinishedWork() {
precache_session_table_.DeleteUnfinishedWork();
}
+void PrecacheDatabase::SaveQuota(const PrecacheQuota& quota) {
+ precache_session_table_.SaveQuota(quota);
+}
+
+PrecacheQuota PrecacheDatabase::GetQuota() {
+ return precache_session_table_.GetQuota();
+}
+
base::WeakPtr<PrecacheDatabase> PrecacheDatabase::GetWeakPtr() {
return weak_factory_.GetWeakPtr();
}

Powered by Google App Engine
This is Rietveld 408576698