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

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

Issue 1520613004: cast: Split Rtcp into two for sender and receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timestamp
Patch Set: Rebased Created 4 years, 11 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
« no previous file with comments | « media/cast/net/rtcp/rtcp_defines.h ('k') | media/cast/net/rtcp/rtcp_unittest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_TEST_UTILITY_TEST_UTIL_H 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
6 #define MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H 6 #define MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
7
8 #include <stddef.h>
9
10 #include <string>
11 #include <vector>
12 7
13 namespace media { 8 namespace media {
14 namespace cast { 9 namespace cast {
15 namespace test {
16 10
17 class MeanAndError { 11 // Base class for an RTCP session.
12 class RtcpSession {
18 public: 13 public:
19 MeanAndError() {} 14 virtual ~RtcpSession() {}
20 explicit MeanAndError(const std::vector<double>& values);
21 std::string AsString() const;
22 15
23 size_t num_values; 16 // Handle incoming RTCP packet.
24 double mean; 17 // Returns false if it is not a RTCP packet or it is not directed to
25 double std_dev; 18 // this session, e.g. SSRC doesn't match.
19 virtual bool IncomingRtcpPacket(const uint8_t* data, size_t length) = 0;
26 }; 20 };
27 21
28 } // namespace test
29 } // namespace cast 22 } // namespace cast
30 } // namespace media 23 } // namespace media
31 24
32 #endif // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H 25 #endif // MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
OLDNEW
« no previous file with comments | « media/cast/net/rtcp/rtcp_defines.h ('k') | media/cast/net/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698