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

Unified Diff: blimp/net/packet_writer.h

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Kevin's comments 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/packet_writer.h
diff --git a/blimp/net/packet_writer.h b/blimp/net/packet_writer.h
index 7f9b18be043e1d77a69413ae3ae4c7033159be91..78b8f7835308b927065f2365e8d121b163b8dc1b 100644
--- a/blimp/net/packet_writer.h
+++ b/blimp/net/packet_writer.h
@@ -15,6 +15,8 @@
namespace blimp {
+class BlimpConnectionStatistics;
+
// Interface to describe a writer which can write variable-length data packets
// to a connection.
class BLIMP_NET_EXPORT PacketWriter {
@@ -26,6 +28,13 @@ class BLIMP_NET_EXPORT PacketWriter {
// |callback| must not be invoked if |this| is deleted.
virtual void WritePacket(const scoped_refptr<net::DrainableIOBuffer>& data,
const net::CompletionCallback& callback) = 0;
+
+ void set_blimp_connection_statistics(BlimpConnectionStatistics* statistics) {
Kevin M 2016/05/20 01:02:04 don't use "blimp" here"
shaktisahu 2016/05/22 22:36:57 Done.
+ connection_statistics_ = statistics;
+ }
+
+ protected:
+ BlimpConnectionStatistics* connection_statistics_ = nullptr;
};
} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698