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

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

Issue 112133002: Cast:Moving netwrok sender related code to a designated folder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moving const' to .cc Created 7 years 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 | « media/cast/rtp_sender/mock_rtp_sender.h ('k') | media/cast/rtp_sender/packet_storage/packet_storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtp_sender/packet_storage/packet_storage.h
diff --git a/media/cast/rtp_sender/packet_storage/packet_storage.h b/media/cast/rtp_sender/packet_storage/packet_storage.h
deleted file mode 100644
index bcb0079dd0fbe66472e2255b691573c225086319..0000000000000000000000000000000000000000
--- a/media/cast/rtp_sender/packet_storage/packet_storage.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_CAST_RTP_SENDER_PACKET_STORAGE_INCLUDE_PACKET_STORAGE_H_
-#define MEDIA_CAST_RTP_SENDER_PACKET_STORAGE_INCLUDE_PACKET_STORAGE_H_
-
-#include <list>
-#include <map>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/memory/linked_ptr.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/time/tick_clock.h"
-#include "base/time/time.h"
-#include "media/cast/cast_config.h"
-
-namespace media {
-namespace cast {
-
-class StoredPacket;
-typedef std::map<uint32, linked_ptr<StoredPacket> > PacketMap;
-typedef std::multimap<base::TimeTicks, uint32> TimeToPacketMap;
-
-class PacketStorage {
- public:
- static const int kMaxStoredPackets = 1000;
-
- PacketStorage(base::TickClock* clock, int max_time_stored_ms);
- virtual ~PacketStorage();
-
- void StorePacket(uint32 frame_id, uint16 packet_id, const Packet* packet);
-
- // Copies all missing packets into the packet list.
- PacketList GetPackets(
- const MissingFramesAndPacketsMap& missing_frames_and_packets);
-
- // Copies packet into the packet list.
- bool GetPacket(uint8 frame_id, uint16 packet_id, PacketList* packets);
-
- private:
- void CleanupOldPackets(base::TimeTicks now);
-
- base::TickClock* const clock_; // Not owned by this class.
- base::TimeDelta max_time_stored_;
- PacketMap stored_packets_;
- TimeToPacketMap time_to_packet_map_;
- std::list<linked_ptr<StoredPacket> > free_packets_;
-};
-
-} // namespace cast
-} // namespace media
-
-#endif // MEDIA_CAST_RTP_SENDER_PACKET_STORAGE_INCLUDE_PACKET_STORAGE_H_
« no previous file with comments | « media/cast/rtp_sender/mock_rtp_sender.h ('k') | media/cast/rtp_sender/packet_storage/packet_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698