Index: blimp/net/packet_reader.h |
diff --git a/blimp/net/packet_reader.h b/blimp/net/packet_reader.h |
index 543351ac2204004111d52f7734b137f604f94784..89718fe14ccc9bc29b0a26b9bb17036f5f79d3c7 100644 |
--- a/blimp/net/packet_reader.h |
+++ b/blimp/net/packet_reader.h |
@@ -5,6 +5,7 @@ |
#ifndef BLIMP_NET_PACKET_READER_H_ |
#define BLIMP_NET_PACKET_READER_H_ |
+#include "blimp/net/blimp_connection_statistics.h" |
#include "blimp/net/blimp_net_export.h" |
#include "net/base/completion_callback.h" |
#include "net/base/io_buffer.h" |
@@ -25,6 +26,13 @@ class BLIMP_NET_EXPORT PacketReader { |
// |callback| will not be invoked if |this| is deleted. |
virtual void ReadPacket(const scoped_refptr<net::GrowableIOBuffer>& buf, |
const net::CompletionCallback& cb) = 0; |
+ |
+ void set_blimp_connection_statistics(BlimpConnectionStatistics* statistics) { |
+ blimp_connection_statistics_ = statistics; |
+ } |
+ |
+ protected: |
+ BlimpConnectionStatistics* blimp_connection_statistics_ = nullptr; |
}; |
} // namespace blimp |