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

Side by Side Diff: media/cast/net/rtcp/rtcp_receiver.h

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing includes Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/cast/net/rtcp/rtcp_defines.cc ('k') | media/cast/net/rtcp/rtcp_receiver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ 5 #ifndef MEDIA_CAST_RTCP_RTCP_RECEIVER_H_
6 #define MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ 6 #define MEDIA_CAST_RTCP_RTCP_RECEIVER_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
11 #include "media/cast/rtcp/rtcp.h" 11 #include "media/cast/net/cast_transport_defines.h"
12 #include "media/cast/rtcp/rtcp_defines.h" 12 #include "media/cast/net/rtcp/rtcp.h"
13 #include "media/cast/rtcp/rtcp_utility.h" 13 #include "media/cast/net/rtcp/rtcp_defines.h"
14 #include "media/cast/transport/cast_transport_defines.h" 14 #include "media/cast/net/rtcp/rtcp_utility.h"
15 15
16 namespace media { 16 namespace media {
17 namespace cast { 17 namespace cast {
18 18
19 class RtcpReceiverFeedback { 19 class RtcpReceiverFeedback {
20 public: 20 public:
21 virtual void OnReceivedSenderReport( 21 virtual void OnReceivedSenderReport(
22 const transport::RtcpSenderInfo& remote_sender_info) = 0; 22 const RtcpSenderInfo& remote_sender_info) = 0;
23 23
24 virtual void OnReceiverReferenceTimeReport( 24 virtual void OnReceiverReferenceTimeReport(
25 const RtcpReceiverReferenceTimeReport& remote_time_report) = 0; 25 const RtcpReceiverReferenceTimeReport& remote_time_report) = 0;
26 26
27 virtual void OnReceivedSendReportRequest() = 0; 27 virtual void OnReceivedSendReportRequest() = 0;
28 28
29 virtual void OnReceivedReceiverLog( 29 virtual void OnReceivedReceiverLog(
30 const RtcpReceiverLogMessage& receiver_log) = 0; 30 const RtcpReceiverLogMessage& receiver_log) = 0;
31 31
32 virtual ~RtcpReceiverFeedback() {} 32 virtual ~RtcpReceiverFeedback() {}
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 const uint32 ssrc_; 110 const uint32 ssrc_;
111 uint32 remote_ssrc_; 111 uint32 remote_ssrc_;
112 112
113 // Not owned by this class. 113 // Not owned by this class.
114 RtcpSenderFeedback* const sender_feedback_; 114 RtcpSenderFeedback* const sender_feedback_;
115 RtcpReceiverFeedback* const receiver_feedback_; 115 RtcpReceiverFeedback* const receiver_feedback_;
116 RtcpRttFeedback* const rtt_feedback_; 116 RtcpRttFeedback* const rtt_feedback_;
117 scoped_refptr<CastEnvironment> cast_environment_; 117 scoped_refptr<CastEnvironment> cast_environment_;
118 118
119 transport::FrameIdWrapHelper ack_frame_id_wrap_helper_; 119 FrameIdWrapHelper ack_frame_id_wrap_helper_;
120 120
121 // Maintains a history of receiver events. 121 // Maintains a history of receiver events.
122 size_t receiver_event_history_size_; 122 size_t receiver_event_history_size_;
123 typedef std::pair<uint64, uint64> ReceiverEventKey; 123 typedef std::pair<uint64, uint64> ReceiverEventKey;
124 base::hash_set<ReceiverEventKey> receiver_event_key_set_; 124 base::hash_set<ReceiverEventKey> receiver_event_key_set_;
125 std::queue<ReceiverEventKey> receiver_event_key_queue_; 125 std::queue<ReceiverEventKey> receiver_event_key_queue_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver); 127 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver);
128 }; 128 };
129 129
130 } // namespace cast 130 } // namespace cast
131 } // namespace media 131 } // namespace media
132 132
133 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ 133 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « media/cast/net/rtcp/rtcp_defines.cc ('k') | media/cast/net/rtcp/rtcp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698