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

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

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Remove the linking-time polymorphism. Add new CreatePeerConnectionFactory methods. Make Call and Rt… Created 3 years, 6 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
11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/logging.h"
18 #include "webrtc/base/platform_file.h" 19 #include "webrtc/base/platform_file.h"
19 #include "webrtc/config.h" 20 #include "webrtc/config.h"
20 21
21 namespace webrtc { 22 namespace webrtc {
22 23
23 // Forward declaration of storage class that is automatically generated from 24 // Forward declaration of storage class that is automatically generated from
24 // the protobuf file. 25 // the protobuf file.
25 namespace rtclog { 26 namespace rtclog {
26 class EventStream; 27 class EventStream;
27 28
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 }; 183 };
183 184
184 // No-op implementation is used if flag is not set, or in tests. 185 // No-op implementation is used if flag is not set, or in tests.
185 class RtcEventLogNullImpl : public RtcEventLog { 186 class RtcEventLogNullImpl : public RtcEventLog {
186 public: 187 public:
187 bool StartLogging(const std::string& file_name, 188 bool StartLogging(const std::string& file_name,
188 int64_t max_size_bytes) override { 189 int64_t max_size_bytes) override {
189 return false; 190 return false;
190 } 191 }
191 bool StartLogging(rtc::PlatformFile platform_file, 192 bool StartLogging(rtc::PlatformFile platform_file,
192 int64_t max_size_bytes) override; 193 int64_t max_size_bytes) override {
194 // The platform_file is open and needs to be closed.
195 if (!rtc::ClosePlatformFile(platform_file)) {
196 LOG(LS_ERROR) << "Can't close file.";
Zhi Huang 2017/06/12 05:59:28 It would cause some macro definition conflict when
197 }
198 return false;
199 }
193 void StopLogging() override {} 200 void StopLogging() override {}
194 void LogVideoReceiveStreamConfig( 201 void LogVideoReceiveStreamConfig(
195 const rtclog::StreamConfig& config) override {} 202 const rtclog::StreamConfig& config) override {}
196 void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) override {} 203 void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) override {}
197 void LogAudioReceiveStreamConfig( 204 void LogAudioReceiveStreamConfig(
198 const rtclog::StreamConfig& config) override {} 205 const rtclog::StreamConfig& config) override {}
199 void LogAudioSendStreamConfig(const rtclog::StreamConfig& config) override {} 206 void LogAudioSendStreamConfig(const rtclog::StreamConfig& config) override {}
200 void LogRtpHeader(PacketDirection direction, 207 void LogRtpHeader(PacketDirection direction,
201 const uint8_t* header, 208 const uint8_t* header,
202 size_t packet_length) override {} 209 size_t packet_length) override {}
(...skipping 17 matching lines...) Expand all
220 int min_probes, 227 int min_probes,
221 int min_bytes) override{}; 228 int min_bytes) override{};
222 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; 229 void LogProbeResultSuccess(int id, int bitrate_bps) override{};
223 void LogProbeResultFailure(int id, 230 void LogProbeResultFailure(int id,
224 ProbeFailureReason failure_reason) override{}; 231 ProbeFailureReason failure_reason) override{};
225 }; 232 };
226 233
227 } // namespace webrtc 234 } // namespace webrtc
228 235
229 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 236 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698