Refactor management of overview window copy lifetime into a separate class.
[chromium-blink-merge.git] / media / cast / rtp_common / rtp_defines.h
blobca5ca94677dd7625698ef6edf16a72d845a0ea77
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_CAST_RTP_COMMON_RTP_DEFINES_H_
6 #define MEDIA_CAST_RTP_COMMON_RTP_DEFINES_H_
8 #include "base/basictypes.h"
9 #include "media/cast/cast_config.h"
10 #include "media/cast/rtcp/rtcp_defines.h"
11 #include "third_party/webrtc/modules/interface/module_common_types.h"
13 namespace media {
14 namespace cast {
16 const uint8 kRtpMarkerBitMask = 0x80;
18 struct RtpCastHeader {
19 RtpCastHeader() {
20 is_key_frame = false;
21 frame_id = 0;
22 packet_id = 0;
23 max_packet_id = 0;
24 is_reference = false;
25 reference_frame_id = 0;
27 webrtc::WebRtcRTPHeader webrtc;
28 bool is_key_frame;
29 uint8 frame_id;
30 uint16 packet_id;
31 uint16 max_packet_id;
32 bool is_reference; // Set to true if the previous frame is not available,
33 // and the reference frame id is available.
34 uint8 reference_frame_id;
37 class RtpPayloadFeedback {
38 public:
39 virtual void CastFeedback(const RtcpCastMessage& cast_feedback) = 0;
41 protected:
42 virtual ~RtpPayloadFeedback() {}
45 } // namespace cast
46 } // namespace media
48 #endif // MEDIA_CAST_RTP_COMMON_RTP_DEFINES_H_