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

Unified Diff: media/cast/transport/rtp_sender/packet_storage/packet_storage.h

Issue 248493002: Cast: Deduplicate packets in paced sender and always send older packets first (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-upping to trick build system Created 6 years, 8 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: media/cast/transport/rtp_sender/packet_storage/packet_storage.h
diff --git a/media/cast/transport/rtp_sender/packet_storage/packet_storage.h b/media/cast/transport/rtp_sender/packet_storage/packet_storage.h
index cd6f70c778121a138bcbc53ada53ea891293e7c1..b5981e858463e34a22dc40e971b250bdb6020268 100644
--- a/media/cast/transport/rtp_sender/packet_storage/packet_storage.h
+++ b/media/cast/transport/rtp_sender/packet_storage/packet_storage.h
@@ -16,13 +16,14 @@
#include "base/time/time.h"
#include "media/cast/transport/cast_transport_config.h"
#include "media/cast/transport/cast_transport_defines.h"
+#include "media/cast/transport/pacing/paced_sender.h"
namespace media {
namespace cast {
namespace transport {
class StoredPacket;
-typedef std::map<uint32, PacketRef> PacketMap;
+typedef std::map<uint32, std::pair<PacketKey, PacketRef> > PacketMap;
typedef std::multimap<base::TimeTicks, uint32> TimeToPacketMap;
class PacketStorage {
@@ -32,15 +33,18 @@ class PacketStorage {
PacketStorage(base::TickClock* clock, int max_time_stored_ms);
virtual ~PacketStorage();
- void StorePacket(uint32 frame_id, uint16 packet_id, PacketRef packet);
+ void StorePacket(uint32 frame_id,
+ uint16 packet_id,
+ const PacketKey& key,
+ PacketRef packet);
// Copies all missing packets into the packet list.
void GetPackets(
const MissingFramesAndPacketsMap& missing_frames_and_packets,
- PacketList* packets_to_resend);
+ SendPacketVector* packets_to_resend);
// Copies packet into the packet list.
- bool GetPacket(uint8 frame_id, uint16 packet_id, PacketList* packets);
+ bool GetPacket(uint8 frame_id, uint16 packet_id, SendPacketVector* packets);
private:
void CleanupOldPackets(base::TimeTicks now);
« no previous file with comments | « media/cast/transport/rtcp/rtcp_builder.cc ('k') | media/cast/transport/rtp_sender/packet_storage/packet_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698