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_RECEIVE_STREAM_CONFIG_H_
12 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_AUDIO_RECEIVE_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 RtcEventAudioReceiveStreamConfig final : public RtcEvent {
25  public:
26   explicit RtcEventAudioReceiveStreamConfig(
27       std::unique_ptr<rtclog::StreamConfig> config);
28   ~RtcEventAudioReceiveStreamConfig() override;
29 
30   Type GetType() const override;
31 
32   bool IsConfigEvent() const override;
33 
34   std::unique_ptr<RtcEventAudioReceiveStreamConfig> Copy() const;
35 
config()36   const rtclog::StreamConfig& config() const { return *config_; }
37 
38  private:
39   RtcEventAudioReceiveStreamConfig(
40       const RtcEventAudioReceiveStreamConfig& other);
41 
42   const std::unique_ptr<const rtclog::StreamConfig> config_;
43 };
44 
45 }  // namespace webrtc
46 
47 #endif  // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_AUDIO_RECEIVE_STREAM_CONFIG_H_
48