Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log.h

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: More modular apporach. Proof of concept. Need more work. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 }; 162 };
163 163
164 // No-op implementation is used if flag is not set, or in tests. 164 // No-op implementation is used if flag is not set, or in tests.
165 class RtcEventLogNullImpl final : public RtcEventLog { 165 class RtcEventLogNullImpl final : public RtcEventLog {
166 public: 166 public:
167 bool StartLogging(const std::string& file_name, 167 bool StartLogging(const std::string& file_name,
168 int64_t max_size_bytes) override { 168 int64_t max_size_bytes) override {
169 return false; 169 return false;
170 } 170 }
171 bool StartLogging(rtc::PlatformFile platform_file, 171 bool StartLogging(rtc::PlatformFile platform_file,
172 int64_t max_size_bytes) override; 172 int64_t max_size_bytes) override {
173 // The platform_file is open and needs to be closed.
174 if (!rtc::ClosePlatformFile(platform_file)) {
175 LOG(LS_ERROR) << "Can't close file.";
176 }
177 return false;
178 }
173 void StopLogging() override {} 179 void StopLogging() override {}
174 void LogVideoReceiveStreamConfig( 180 void LogVideoReceiveStreamConfig(
175 const VideoReceiveStream::Config& config) override {} 181 const VideoReceiveStream::Config& config) override {}
176 void LogVideoSendStreamConfig( 182 void LogVideoSendStreamConfig(
177 const VideoSendStream::Config& config) override {} 183 const VideoSendStream::Config& config) override {}
178 void LogAudioReceiveStreamConfig( 184 void LogAudioReceiveStreamConfig(
179 const AudioReceiveStream::Config& config) override {} 185 const AudioReceiveStream::Config& config) override {}
180 void LogAudioSendStreamConfig( 186 void LogAudioSendStreamConfig(
181 const AudioSendStream::Config& config) override {} 187 const AudioSendStream::Config& config) override {}
182 void LogRtpHeader(PacketDirection direction, 188 void LogRtpHeader(PacketDirection direction,
(...skipping 22 matching lines...) Expand all
205 int min_probes, 211 int min_probes,
206 int min_bytes) override{}; 212 int min_bytes) override{};
207 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; 213 void LogProbeResultSuccess(int id, int bitrate_bps) override{};
208 void LogProbeResultFailure(int id, 214 void LogProbeResultFailure(int id,
209 ProbeFailureReason failure_reason) override{}; 215 ProbeFailureReason failure_reason) override{};
210 }; 216 };
211 217
212 } // namespace webrtc 218 } // namespace webrtc
213 219
214 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 220 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698