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

Unified Diff: components/precache/core/fetcher_pool.h

Issue 1961153003: Add pause/resume functionality to precache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 4 years, 7 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 | « components/precache/core/BUILD.gn ('k') | components/precache/core/precache_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/core/fetcher_pool.h
diff --git a/components/precache/core/fetcher_pool.h b/components/precache/core/fetcher_pool.h
index 1a9cd1cd73c96845a67dce24343cefa6545dfd20..2be36e28f508346e8e6529c40022991e95a4c32a 100644
--- a/components/precache/core/fetcher_pool.h
+++ b/components/precache/core/fetcher_pool.h
@@ -67,6 +67,10 @@ class FetcherPool {
// Returns true iff the pool can accept a new element.
bool IsAvailable() const { return max_size_ > elements_.size(); }
+ const std::unordered_map<const T*, std::unique_ptr<T>>& elements() const {
+ return elements_;
+ }
+
private:
const size_t max_size_;
std::unordered_map<const T*, std::unique_ptr<T>> elements_;
« no previous file with comments | « components/precache/core/BUILD.gn ('k') | components/precache/core/precache_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698