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