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

Unified Diff: blimp/net/blob_channel/blob_channel_sender_impl.cc

Issue 1985863002: Incorporate BlobChannel into Blimp image encode/decode pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blobchannel-helium
Patch Set: fix gn dependency warning & rebase Created 4 years, 6 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: blimp/net/blob_channel/blob_channel_sender_impl.cc
diff --git a/blimp/net/blob_channel/blob_channel_sender.cc b/blimp/net/blob_channel/blob_channel_sender_impl.cc
similarity index 72%
rename from blimp/net/blob_channel/blob_channel_sender.cc
rename to blimp/net/blob_channel/blob_channel_sender_impl.cc
index 6b07adaca64393f09aac7abfc0f7cfa15bc20c4a..4279980f7dd330e3b6e9a93267d2d0b88816d56b 100644
--- a/blimp/net/blob_channel/blob_channel_sender.cc
+++ b/blimp/net/blob_channel/blob_channel_sender_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "blimp/net/blob_channel/blob_channel_sender.h"
+#include "blimp/net/blob_channel/blob_channel_sender_impl.h"
#include "base/strings/string_number_conversions.h"
#include "blimp/common/blob_cache/blob_cache.h"
@@ -10,16 +10,16 @@
namespace blimp {
-BlobChannelSender::BlobChannelSender(std::unique_ptr<BlobCache> cache,
- std::unique_ptr<Delegate> delegate)
+BlobChannelSenderImpl::BlobChannelSenderImpl(std::unique_ptr<BlobCache> cache,
+ std::unique_ptr<Delegate> delegate)
: cache_(std::move(cache)), delegate_(std::move(delegate)) {
DCHECK(cache_);
DCHECK(delegate_);
}
-BlobChannelSender::~BlobChannelSender() {}
+BlobChannelSenderImpl::~BlobChannelSenderImpl() {}
-void BlobChannelSender::PutBlob(const BlobId& id, BlobDataPtr data) {
+void BlobChannelSenderImpl::PutBlob(const BlobId& id, BlobDataPtr data) {
DCHECK(data);
DCHECK(!id.empty());
@@ -31,7 +31,7 @@ void BlobChannelSender::PutBlob(const BlobId& id, BlobDataPtr data) {
cache_->Put(id, data);
}
-void BlobChannelSender::DeliverBlob(const BlobId& id) {
+void BlobChannelSenderImpl::DeliverBlob(const BlobId& id) {
if (!cache_->Contains(id)) {
DLOG(FATAL) << "Attempted to push unknown blob: " << BlobIdToString(id);
return;
« no previous file with comments | « blimp/net/blob_channel/blob_channel_sender_impl.h ('k') | blimp/net/blob_channel/blob_channel_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698