1 /*
2  *  Copyright (c) 2017 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 LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_AUDIO_NETWORK_ADAPTATION_H_
12 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_AUDIO_NETWORK_ADAPTATION_H_
13 
14 #include <memory>
15 
16 #include "api/rtc_event_log/rtc_event.h"
17 
18 namespace webrtc {
19 
20 struct AudioEncoderRuntimeConfig;
21 
22 class RtcEventAudioNetworkAdaptation final : public RtcEvent {
23  public:
24   explicit RtcEventAudioNetworkAdaptation(
25       std::unique_ptr<AudioEncoderRuntimeConfig> config);
26   ~RtcEventAudioNetworkAdaptation() override;
27 
28   Type GetType() const override;
29 
30   bool IsConfigEvent() const override;
31 
32   std::unique_ptr<RtcEventAudioNetworkAdaptation> Copy() const;
33 
config()34   const AudioEncoderRuntimeConfig& config() const { return *config_; }
35 
36  private:
37   RtcEventAudioNetworkAdaptation(const RtcEventAudioNetworkAdaptation& other);
38 
39   const std::unique_ptr<const AudioEncoderRuntimeConfig> config_;
40 };
41 
42 }  // namespace webrtc
43 
44 #endif  // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_AUDIO_NETWORK_ADAPTATION_H_
45