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

Unified 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 5 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/net/rtcp/rtcp_defines.h ('k') | media/cast/net/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtcp/rtcp_session.h
diff --git a/media/cast/test/utility/test_util.h b/media/cast/net/rtcp/rtcp_session.h
similarity index 28%
copy from media/cast/test/utility/test_util.h
copy to media/cast/net/rtcp/rtcp_session.h
index 2b487065abe4fcfdd4221e45bf617569206166db..01528338336bd9edbca29a007214b902842f5ad7 100644
--- a/media/cast/test/utility/test_util.h
+++ b/media/cast/net/rtcp/rtcp_session.h
@@ -1,32 +1,25 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright (c) 2015 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_TEST_UTILITY_TEST_UTIL_H
-#define MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H
-
-#include <stddef.h>
-
-#include <string>
-#include <vector>
+#ifndef MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
+#define MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
namespace media {
namespace cast {
-namespace test {
-class MeanAndError {
+// Base class for an RTCP session.
+class RtcpSession {
public:
- MeanAndError() {}
- explicit MeanAndError(const std::vector<double>& values);
- std::string AsString() const;
+ virtual ~RtcpSession() {}
- size_t num_values;
- double mean;
- double std_dev;
+ // Handle incoming RTCP packet.
+ // Returns false if it is not a RTCP packet or it is not directed to
+ // this session, e.g. SSRC doesn't match.
+ virtual bool IncomingRtcpPacket(const uint8_t* data, size_t length) = 0;
};
-} // namespace test
} // namespace cast
} // namespace media
-#endif // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H
+#endif // MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
« 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