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