| Index: blimp/common/blob_cache/in_memory_blob_cache.cc
|
| diff --git a/blimp/common/blob_cache/in_memory_blob_cache.cc b/blimp/common/blob_cache/in_memory_blob_cache.cc
|
| index bad46df059937c7849f89da6a897de8e93114612..43d7f106a60facffcd85f7e4fa1f019e1e857898 100644
|
| --- a/blimp/common/blob_cache/in_memory_blob_cache.cc
|
| +++ b/blimp/common/blob_cache/in_memory_blob_cache.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "blimp/common/blob_cache/in_memory_blob_cache.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "base/logging.h"
|
|
|
| namespace blimp {
|
| @@ -12,6 +14,14 @@ InMemoryBlobCache::InMemoryBlobCache() {}
|
|
|
| InMemoryBlobCache::~InMemoryBlobCache() {}
|
|
|
| +std::vector<BlobId> InMemoryBlobCache::GetCachedBlobIds() const {
|
| + std::vector<BlobId> cached_ids;
|
| + for (const auto& blob_id_and_data_pair : cache_) {
|
| + cached_ids.push_back(blob_id_and_data_pair.first);
|
| + }
|
| + return cached_ids;
|
| +}
|
| +
|
| void InMemoryBlobCache::Put(const BlobId& id, BlobDataPtr data) {
|
| if (Contains(id)) {
|
| // In cases where the engine has miscalculated what is already available
|
|
|