| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 // No-op implementation is used if flag is not set, or in tests. | 184 // No-op implementation is used if flag is not set, or in tests. |
| 185 class RtcEventLogNullImpl : public RtcEventLog { | 185 class RtcEventLogNullImpl : public RtcEventLog { |
| 186 public: | 186 public: |
| 187 bool StartLogging(const std::string& file_name, | 187 bool StartLogging(const std::string& file_name, |
| 188 int64_t max_size_bytes) override { | 188 int64_t max_size_bytes) override { |
| 189 return false; | 189 return false; |
| 190 } | 190 } |
| 191 bool StartLogging(rtc::PlatformFile platform_file, | 191 bool StartLogging(rtc::PlatformFile platform_file, |
| 192 int64_t max_size_bytes) override; | 192 int64_t max_size_bytes) override { |
| 193 return false; |
| 194 } |
| 193 void StopLogging() override {} | 195 void StopLogging() override {} |
| 194 void LogVideoReceiveStreamConfig( | 196 void LogVideoReceiveStreamConfig( |
| 195 const rtclog::StreamConfig& config) override {} | 197 const rtclog::StreamConfig& config) override {} |
| 196 void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) override {} | 198 void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) override {} |
| 197 void LogAudioReceiveStreamConfig( | 199 void LogAudioReceiveStreamConfig( |
| 198 const rtclog::StreamConfig& config) override {} | 200 const rtclog::StreamConfig& config) override {} |
| 199 void LogAudioSendStreamConfig(const rtclog::StreamConfig& config) override {} | 201 void LogAudioSendStreamConfig(const rtclog::StreamConfig& config) override {} |
| 200 void LogRtpHeader(PacketDirection direction, | 202 void LogRtpHeader(PacketDirection direction, |
| 201 const uint8_t* header, | 203 const uint8_t* header, |
| 202 size_t packet_length) override {} | 204 size_t packet_length) override {} |
| (...skipping 17 matching lines...) Expand all Loading... |
| 220 int min_probes, | 222 int min_probes, |
| 221 int min_bytes) override{}; | 223 int min_bytes) override{}; |
| 222 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; | 224 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; |
| 223 void LogProbeResultFailure(int id, | 225 void LogProbeResultFailure(int id, |
| 224 ProbeFailureReason failure_reason) override{}; | 226 ProbeFailureReason failure_reason) override{}; |
| 225 }; | 227 }; |
| 226 | 228 |
| 227 } // namespace webrtc | 229 } // namespace webrtc |
| 228 | 230 |
| 229 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 231 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
| OLD | NEW |