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

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

Issue 2400993002: Fix chromium-style warnings. (Closed)
Patch Set: Created 4 years, 2 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
(Empty)
1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_DEFINES_NULLIMPL_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_DEFINES_NULLIMPL_H_
13
14 #include <stddef.h>
15
16 #include "webrtc/modules/include/module_common_types.h"
17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
18
19 namespace webrtc {
20
21 // Null object version of RtpFeedback.
22 class NullRtpFeedback : public RtpFeedback {
23 public:
24 ~NullRtpFeedback() override {}
25
26 int32_t OnInitializeDecoder(int8_t payload_type,
27 const char payloadName[RTP_PAYLOAD_NAME_SIZE],
28 int frequency,
29 size_t channels,
30 uint32_t rate) override;
31
32 void OnIncomingSSRCChanged(uint32_t ssrc) override {}
33 void OnIncomingCSRCChanged(uint32_t csrc, bool added) override {}
34 };
35
36 // Null object version of RtpData.
37 class NullRtpData : public RtpData {
38 public:
39 ~NullRtpData() override {}
40
41 int32_t OnReceivedPayloadData(const uint8_t* payload_data,
42 size_t payload_size,
43 const WebRtcRTPHeader* rtp_header) override;
44
45 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override;
46 };
47
48 } // namespace webrtc
49 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_DEFINES_NULLIMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698