| Index: blimp/net/packet_writer.h
|
| diff --git a/blimp/net/packet_writer.h b/blimp/net/packet_writer.h
|
| index 7f9b18be043e1d77a69413ae3ae4c7033159be91..e2b94a716f10bdbe9ff218ed5a771876e6dd6151 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) {
|
| + blimp_connection_statistics_ = statistics;
|
| + }
|
| +
|
| + protected:
|
| + BlimpConnectionStatistics* blimp_connection_statistics_ = nullptr;
|
| };
|
|
|
| } // namespace blimp
|
|
|