summaryrefslogtreecommitdiffstats
path: root/media/cast/net/rtcp/rtcp_session.h
blob: 01528338336bd9edbca29a007214b902842f5ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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_t* data, size_t length) = 0;
};

}  // namespace cast
}  // namespace media

#endif  // MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_