| Index: media/cast/net/cast_transport_config.h
|
| diff --git a/media/cast/net/cast_transport_config.h b/media/cast/net/cast_transport_config.h
|
| index 82823ad3c5712303bcf39af1e5d3c886a5ed0600..dc63bee99a21323930bafbd384ac6158b93f4818 100644
|
| --- a/media/cast/net/cast_transport_config.h
|
| +++ b/media/cast/net/cast_transport_config.h
|
| @@ -126,6 +126,8 @@ typedef base::Callback<void(scoped_ptr<Packet> packet)> PacketReceiverCallback;
|
| typedef base::Callback<bool(scoped_ptr<Packet> packet)>
|
| PacketReceiverCallbackWithStatus;
|
|
|
| +// TODO(xjz): Rename PacketSender as it also deals with receiving packets.
|
| +// http://crbug.com/589157.
|
| class PacketSender {
|
| public:
|
| // Send a packet to the network. Returns false if the network is blocked
|
| @@ -138,6 +140,13 @@ class PacketSender {
|
| // Returns the number of bytes ever sent.
|
| virtual int64_t GetBytesSent() = 0;
|
|
|
| + // Start receiving packets. Pakets are submitted to |packet_receiver|.
|
| + virtual void StartReceiving(
|
| + const PacketReceiverCallbackWithStatus& packet_receiver) = 0;
|
| +
|
| + // Stop receiving packets.
|
| + virtual void StopReceiving() = 0;
|
| +
|
| virtual ~PacketSender() {}
|
| };
|
|
|
|
|