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

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: Add missing rtcp_session.h and a few comments 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
Index: media/cast/net/rtcp/rtcp_session.h
diff --git a/media/cast/net/rtcp/rtcp_session.h b/media/cast/net/rtcp/rtcp_session.h
new file mode 100644
index 0000000000000000000000000000000000000000..6020342fa72f4842af45e536bebb8c882de7b9cf
--- /dev/null
+++ b/media/cast/net/rtcp/rtcp_session.h
@@ -0,0 +1,25 @@
+// 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_NET_RTCP_RTCP_SESSION_H_
+#define MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
+
+namespace media {
+namespace cast {
+
+// Base class for an RTCP session.
+class RtcpSession {
+ public:
+ virtual ~RtcpSession() {}
+
+ // 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* data, size_t length) = 0;
+};
+
+} // namespace cast
+} // namespace media
+
+#endif // MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_

Powered by Google App Engine
This is Rietveld 408576698