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

Side by Side Diff: webrtc/logging/rtc_event_log/encoder/rtc_event_log_encoder_legacy.h

Issue 3006233002: Modularize RtcEventLog
Patch Set: Backup Created 3 years, 3 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) 2015 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_LOGGING_RTC_EVENT_LOG_ENCODER_RTC_EVENT_LOG_ENCODER_LEGACY_H_
12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_ENCODER_RTC_EVENT_LOG_ENCODER_LEGACY_H_
13
14 #include <memory>
15 #include <string>
16 #include <vector>
17
18 #include "webrtc/api/array_view.h"
19 #include "webrtc/api/rtpparameters.h"
20 #include "webrtc/common_types.h"
21 #include "webrtc/logging/rtc_event_log/encoder/rtc_event_log_encoder.h"
22 #include "webrtc/rtc_base/platform_file.h"
23
24 namespace webrtc {
25
26 class RtcEventLogEncoderLegacy final : public RtcEventLogEncoder {
27 public:
28 ~RtcEventLogEncoderLegacy() override = default;
29
30 void LoggingStart() override;
31 void LoggingStopped() override;
32 void VideoReceiveStreamConfig(const rtclog::StreamConfig& config) override;
33 void VideoSendStreamConfig(const rtclog::StreamConfig& config) override;
34 void AudioReceiveStreamConfig(const rtclog::StreamConfig& config) override;
35 void AudioSendStreamConfig(const rtclog::StreamConfig& config) override;
36 void RtpHeader(PacketDirection direction,
37 const uint8_t* header,
38 size_t packet_length) override;
39 void RtpHeader(PacketDirection direction,
40 const uint8_t* header,
41 size_t packet_length,
42 int probe_cluster_id) override;
43 void IncomingRtpHeader(const RtpPacketReceived& packet) override;
44 void OutgoingRtpHeader(const RtpPacketToSend& packet,
45 int probe_cluster_id) override;
46 void RtcpPacket(PacketDirection direction,
47 const uint8_t* packet,
48 size_t length) override;
49 void IncomingRtcpPacket(rtc::ArrayView<const uint8_t> packet) override;
50 void OutgoingRtcpPacket(rtc::ArrayView<const uint8_t> packet) override;
51 void AudioPlayout(uint32_t ssrc) override;
52 void LossBasedBweUpdate(int32_t bitrate_bps,
53 uint8_t fraction_loss,
54 int32_t total_packets) override;
55 void DelayBasedBweUpdate(int32_t bitrate_bps,
56 BandwidthUsage detector_state) override;
57 void AudioNetworkAdaptation(const AudioEncoderRuntimeConfig& config) override;
58 void ProbeClusterCreated(int id,
59 int bitrate_bps,
60 int min_probes,
61 int min_bytes) override;
62 void ProbeResultSuccess(int id, int bitrate_bps) override;
63 void ProbeResultFailure(int id, ProbeFailureReason failure_reason) override;
64 };
65
66 } // namespace webrtc
67
68 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_ENCODER_RTC_EVENT_LOG_ENCODER_LEGACY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698