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

Unified Diff: media/cast/net/cast_transport_config.h

Issue 1515023002: Simplify interface for media/cast: CastTransportSenderImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « chrome/renderer/media/cast_transport_sender_ipc.h ('k') | media/cast/net/cast_transport_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {}
};
« no previous file with comments | « chrome/renderer/media/cast_transport_sender_ipc.h ('k') | media/cast/net/cast_transport_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698