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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h

Issue 1743543003: RtpRtcp allows to register header extension by name (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_
13 13
14 #include <list> 14 #include <list>
15 #include <set> 15 #include <set>
16 #include <string>
16 #include <utility> 17 #include <utility>
17 #include <vector> 18 #include <vector>
18 19
19 #include "webrtc/base/gtest_prod_util.h" 20 #include "webrtc/base/gtest_prod_util.h"
20 #include "webrtc/base/scoped_ptr.h" 21 #include "webrtc/base/scoped_ptr.h"
21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
22 #include "webrtc/modules/rtp_rtcp/source/packet_loss_stats.h" 23 #include "webrtc/modules/rtp_rtcp/source/packet_loss_stats.h"
23 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h"
24 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h"
25 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" 26 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h"
(...skipping 26 matching lines...) Expand all
52 int32_t RegisterSendPayload(const VideoCodec& video_codec) override; 53 int32_t RegisterSendPayload(const VideoCodec& video_codec) override;
53 54
54 int32_t DeRegisterSendPayload(int8_t payload_type) override; 55 int32_t DeRegisterSendPayload(int8_t payload_type) override;
55 56
56 int8_t SendPayloadType() const; 57 int8_t SendPayloadType() const;
57 58
58 // Register RTP header extension. 59 // Register RTP header extension.
59 int32_t RegisterSendRtpHeaderExtension(RTPExtensionType type, 60 int32_t RegisterSendRtpHeaderExtension(RTPExtensionType type,
60 uint8_t id) override; 61 uint8_t id) override;
61 62
63 bool RegisterRtpHeaderExtension(const std::string& type, uint8_t id) override;
64
62 int32_t DeregisterSendRtpHeaderExtension(RTPExtensionType type) override; 65 int32_t DeregisterSendRtpHeaderExtension(RTPExtensionType type) override;
63 66
64 // Get start timestamp. 67 // Get start timestamp.
65 uint32_t StartTimestamp() const override; 68 uint32_t StartTimestamp() const override;
66 69
67 // Configure start timestamp, default is a random number. 70 // Configure start timestamp, default is a random number.
68 void SetStartTimestamp(uint32_t timestamp) override; 71 void SetStartTimestamp(uint32_t timestamp) override;
69 72
70 uint16_t SequenceNumber() const override; 73 uint16_t SequenceNumber() const override;
71 74
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 PacketLossStats receive_loss_stats_; 383 PacketLossStats receive_loss_stats_;
381 384
382 // The processed RTT from RtcpRttStats. 385 // The processed RTT from RtcpRttStats.
383 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtt_; 386 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtt_;
384 int64_t rtt_ms_; 387 int64_t rtt_ms_;
385 }; 388 };
386 389
387 } // namespace webrtc 390 } // namespace webrtc
388 391
389 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ 392 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698