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

Unified Diff: blimp/net/blob_channel/blob_channel_receiver.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: Decoupled BlobChannelSenderHost from mojom::BlobChannel 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
Index: blimp/net/blob_channel/blob_channel_receiver.cc
diff --git a/blimp/net/blob_channel/blob_channel_receiver.cc b/blimp/net/blob_channel/blob_channel_receiver.cc
index 5819854a5b0998f37ece339bbc2ec669b62d70f6..b0922e7a4bd38f7e823d0c82cae5126b2660b1cf 100644
--- a/blimp/net/blob_channel/blob_channel_receiver.cc
+++ b/blimp/net/blob_channel/blob_channel_receiver.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "blimp/common/blob_cache/blob_cache.h"
+#include "blimp/common/blob_cache/id_util.h"
namespace blimp {
@@ -44,7 +45,7 @@ BlobChannelReceiverImpl::BlobChannelReceiverImpl(
BlobChannelReceiverImpl::~BlobChannelReceiverImpl() {}
BlobDataPtr BlobChannelReceiverImpl::Get(const BlobId& id) {
- DVLOG(2) << "Get blob: " << id;
+ DVLOG(2) << "Get blob: " << BlobIdToString(id);
base::AutoLock lock(cache_lock_);
return cache_->Get(id);
@@ -52,7 +53,8 @@ BlobDataPtr BlobChannelReceiverImpl::Get(const BlobId& id) {
void BlobChannelReceiverImpl::OnBlobReceived(const BlobId& id,
BlobDataPtr data) {
- DVLOG(2) << "Blob received: " << id;
+ DVLOG(2) << "Blob received: " << BlobIdToString(id)
+ << ", size: " << data->data.size();
base::AutoLock lock(cache_lock_);
cache_->Put(id, data);
« blimp/engine/session/blimp_engine_session.cc ('K') | « blimp/engine/session/blimp_engine_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698