| 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..a4c9579b6cf49e8228958123dbc1d6c5549689c6 100644
|
| --- a/components/precache/core/fetcher_pool.h
|
| +++ b/components/precache/core/fetcher_pool.h
|
| @@ -8,6 +8,7 @@
|
| #include <memory>
|
| #include <unordered_map>
|
|
|
| +#include "base/gtest_prod_util.h"
|
| #include "base/logging.h"
|
|
|
| namespace precache {
|
| @@ -67,6 +68,9 @@ class FetcherPool {
|
| // Returns true iff the pool can accept a new element.
|
| bool IsAvailable() const { return max_size_ > elements_.size(); }
|
|
|
| + // Returns the maximum size of the pool.
|
| + size_t max_size() const { return max_size_; }
|
| +
|
| private:
|
| const size_t max_size_;
|
| std::unordered_map<const T*, std::unique_ptr<T>> elements_;
|
|
|