| Index: blimp/net/blob_channel/blob_channel_sender_impl.cc
|
| diff --git a/blimp/net/blob_channel/blob_channel_sender_impl.cc b/blimp/net/blob_channel/blob_channel_sender_impl.cc
|
| index 4279980f7dd330e3b6e9a93267d2d0b88816d56b..2652022b820997f811d83218aac532607c2a9a82 100644
|
| --- a/blimp/net/blob_channel/blob_channel_sender_impl.cc
|
| +++ b/blimp/net/blob_channel/blob_channel_sender_impl.cc
|
| @@ -19,6 +19,21 @@ BlobChannelSenderImpl::BlobChannelSenderImpl(std::unique_ptr<BlobCache> cache,
|
|
|
| BlobChannelSenderImpl::~BlobChannelSenderImpl() {}
|
|
|
| +std::vector<BlobChannelSender::CacheState>
|
| +BlobChannelSenderImpl::GetCacheState() const {
|
| + const auto cache_state = cache_->GetCacheState();
|
| + std::vector<CacheState> output;
|
| + output.reserve(cache_state.size());
|
| + for (const std::string& next_item_str : cache_state) {
|
| + CacheState next_output;
|
| + next_output.id = next_item_str;
|
| + next_output.is_replicated = receiver_cache_contents_.find(next_item_str) !=
|
| + receiver_cache_contents_.end();
|
| + output.push_back(next_output);
|
| + }
|
| + return output;
|
| +}
|
| +
|
| void BlobChannelSenderImpl::PutBlob(const BlobId& id, BlobDataPtr data) {
|
| DCHECK(data);
|
| DCHECK(!id.empty());
|
|
|