OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" | 10 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
11 | 11 |
12 #include "webrtc/base/scoped_ptr.h" | 12 #include "webrtc/base/scoped_ptr.h" |
13 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" | 13 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" |
14 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 14 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
15 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 15 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 class RtpHeaderParserImpl : public RtpHeaderParser { | 19 class RtpHeaderParserImpl : public RtpHeaderParser { |
20 public: | 20 public: |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 uint8_t id) { | 69 uint8_t id) { |
70 CriticalSectionScoped cs(critical_section_.get()); | 70 CriticalSectionScoped cs(critical_section_.get()); |
71 return rtp_header_extension_map_.Register(type, id) == 0; | 71 return rtp_header_extension_map_.Register(type, id) == 0; |
72 } | 72 } |
73 | 73 |
74 bool RtpHeaderParserImpl::DeregisterRtpHeaderExtension(RTPExtensionType type) { | 74 bool RtpHeaderParserImpl::DeregisterRtpHeaderExtension(RTPExtensionType type) { |
75 CriticalSectionScoped cs(critical_section_.get()); | 75 CriticalSectionScoped cs(critical_section_.get()); |
76 return rtp_header_extension_map_.Deregister(type) == 0; | 76 return rtp_header_extension_map_.Deregister(type) == 0; |
77 } | 77 } |
78 } // namespace webrtc | 78 } // namespace webrtc |
OLD | NEW |