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

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: 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_receiver.cc
diff --git a/blimp/net/blob_channel/blob_channel_receiver.cc b/blimp/net/blob_channel/blob_channel_receiver.cc
index da89c2f6b7f8bacad15c46a18e22fb7c49059879..37e8961c7e260130e9aa3aa273c96b432e4a36d3 100644
--- a/blimp/net/blob_channel/blob_channel_receiver.cc
+++ b/blimp/net/blob_channel/blob_channel_receiver.cc
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "blimp/common/blob_cache/blob_cache.h"
+#include "blimp/common/blob_cache/id_util.h"
namespace blimp {
namespace {
@@ -56,7 +57,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);
@@ -64,7 +65,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);
« no previous file with comments | « blimp/net/blob_channel/blob_channel_integration_test.cc ('k') | blimp/net/blob_channel/blob_channel_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698