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

Unified Diff: media/cast/rtp_receiver/rtp_receiver.h

Issue 308043006: [Cast] Clean-up: Merge RtpReceiver+AudioReceiver+VideoReceiver-->FrameReceiver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed hclam's comments. Created 6 years, 7 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 | « media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc ('k') | media/cast/rtp_receiver/rtp_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtp_receiver/rtp_receiver.h
diff --git a/media/cast/rtp_receiver/rtp_receiver.h b/media/cast/rtp_receiver/rtp_receiver.h
deleted file mode 100644
index 35c7c933a2747fc243a2432f099ea3220f63d224..0000000000000000000000000000000000000000
--- a/media/cast/rtp_receiver/rtp_receiver.h
+++ /dev/null
@@ -1,53 +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.
-
-// Interface to the rtp receiver.
-
-#ifndef MEDIA_CAST_RTP_RECEIVER_RTP_RECEIVER_H_
-#define MEDIA_CAST_RTP_RECEIVER_RTP_RECEIVER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "media/cast/cast_config.h"
-#include "media/cast/rtcp/rtcp.h"
-#include "media/cast/rtp_receiver/receiver_stats.h"
-#include "media/cast/rtp_receiver/rtp_parser/rtp_parser.h"
-#include "media/cast/rtp_receiver/rtp_receiver_defines.h"
-
-namespace media {
-namespace cast {
-
-// TODO(miu): This is a good candidate to contain common functionality that's
-// identical in both AudioReceiver and VideoReceiver.
-class RtpReceiver {
- public:
- RtpReceiver(base::TickClock* clock,
- const FrameReceiverConfig* audio_config,
- const FrameReceiverConfig* video_config);
- virtual ~RtpReceiver();
-
- static uint32 GetSsrcOfSender(const uint8* rtcp_buffer, size_t length);
-
- bool ReceivedPacket(const uint8* packet, size_t length);
-
- RtpReceiverStatistics* GetStatistics() {
- return &stats_;
- }
-
- protected:
- // Subclasses implement this to consume and process deserialized packets.
- virtual void OnReceivedPayloadData(const uint8* payload_data,
- size_t payload_size,
- const RtpCastHeader& rtp_header) = 0;
-
- private:
- RtpParser packet_parser_;
- ReceiverStats stats_;
-
- DISALLOW_COPY_AND_ASSIGN(RtpReceiver);
-};
-
-} // namespace cast
-} // namespace media
-
-#endif // MEDIA_CAST_RTP_RECEIVER_RTP_RECEIVER_H_
« no previous file with comments | « media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc ('k') | media/cast/rtp_receiver/rtp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698