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

Unified Diff: blimp/net/blimp_connection.cc

Issue 2008283004: Revert of Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « blimp/net/blimp_connection.h ('k') | blimp/net/blimp_connection_statistics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_connection.cc
diff --git a/blimp/net/blimp_connection.cc b/blimp/net/blimp_connection.cc
index 792d0943730b7d7f2e20bf3865e1d352637a4039..e8f3c68cc376131814ccd41bcf308c8950a2ce91 100644
--- a/blimp/net/blimp_connection.cc
+++ b/blimp/net/blimp_connection.cc
@@ -20,6 +20,7 @@
#include "net/base/completion_callback.h"
namespace blimp {
+namespace {
// Forwards incoming blimp messages to PacketWriter.
class BlimpMessageSender : public BlimpMessageProcessor {
@@ -96,6 +97,8 @@
}
}
+} // namespace
+
BlimpConnection::BlimpConnection(std::unique_ptr<PacketReader> reader,
std::unique_ptr<PacketWriter> writer)
: reader_(std::move(reader)),
@@ -107,7 +110,9 @@
// Observe the connection errors received by any of this connection's network
// objects.
message_pump_->set_error_observer(this);
- outgoing_msg_processor_->set_error_observer(this);
+ BlimpMessageSender* sender =
+ static_cast<BlimpMessageSender*>(outgoing_msg_processor_.get());
+ sender->set_error_observer(this);
}
BlimpConnection::BlimpConnection() {}
« no previous file with comments | « blimp/net/blimp_connection.h ('k') | blimp/net/blimp_connection_statistics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698