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

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

Issue 3010263002: Events - backup
Patch Set: Compiles Created 3 years, 3 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/api/array_view.h" 18 #include "webrtc/api/array_view.h"
19 #include "webrtc/api/rtpparameters.h" 19 #include "webrtc/api/rtpparameters.h"
20 #include "webrtc/common_types.h" 20 #include "webrtc/common_types.h"
21 #include "webrtc/logging/rtc_event_log/events/rtc_event.h"
21 #include "webrtc/rtc_base/platform_file.h" 22 #include "webrtc/rtc_base/platform_file.h"
22 23
23 namespace webrtc { 24 namespace webrtc {
24 25
25 // Forward declaration of storage class that is automatically generated from 26 // Forward declaration of storage class that is automatically generated from
26 // the protobuf file. 27 // the protobuf file.
27 namespace rtclog { 28 namespace rtclog {
28 class EventStream; 29 class EventStream;
29 30
30 struct StreamConfig { 31 struct StreamConfig {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 107
107 // Deprecated. Pass an explicit file size limit. 108 // Deprecated. Pass an explicit file size limit.
108 RTC_DEPRECATED bool StartLogging(rtc::PlatformFile platform_file) { 109 RTC_DEPRECATED bool StartLogging(rtc::PlatformFile platform_file) {
109 return StartLogging(platform_file, 10000000); 110 return StartLogging(platform_file, 10000000);
110 } 111 }
111 112
112 // Stops logging to file and waits until the file has been closed, after 113 // Stops logging to file and waits until the file has been closed, after
113 // which it would be permissible to read and/or modify it. 114 // which it would be permissible to read and/or modify it.
114 virtual void StopLogging() = 0; 115 virtual void StopLogging() = 0;
115 116
117 // Logs an event.
118 virtual void LogRtcEvent(std::unique_ptr<RtcEvent> event) = 0;
119
116 // Logs configuration information for a video receive stream. 120 // Logs configuration information for a video receive stream.
117 virtual void LogVideoReceiveStreamConfig( 121 virtual void LogVideoReceiveStreamConfig(
118 const rtclog::StreamConfig& config) = 0; 122 const rtclog::StreamConfig& config) = 0;
119 123
120 // Logs configuration information for a video send stream. 124 // Logs configuration information for a video send stream.
121 virtual void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) = 0; 125 virtual void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) = 0;
122 126
123 // Logs configuration information for an audio receive stream. 127 // Logs configuration information for an audio receive stream.
124 virtual void LogAudioReceiveStreamConfig( 128 virtual void LogAudioReceiveStreamConfig(
125 const rtclog::StreamConfig& config) = 0; 129 const rtclog::StreamConfig& config) = 0;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 public: 204 public:
201 bool StartLogging(const std::string& file_name, 205 bool StartLogging(const std::string& file_name,
202 int64_t max_size_bytes) override { 206 int64_t max_size_bytes) override {
203 return false; 207 return false;
204 } 208 }
205 bool StartLogging(rtc::PlatformFile platform_file, 209 bool StartLogging(rtc::PlatformFile platform_file,
206 int64_t max_size_bytes) override { 210 int64_t max_size_bytes) override {
207 return false; 211 return false;
208 } 212 }
209 void StopLogging() override {} 213 void StopLogging() override {}
214 void LogRtcEvent(std::unique_ptr<RtcEvent> event) override {}
210 void LogVideoReceiveStreamConfig( 215 void LogVideoReceiveStreamConfig(
211 const rtclog::StreamConfig& config) override {} 216 const rtclog::StreamConfig& config) override {}
212 void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) override {} 217 void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) override {}
213 void LogAudioReceiveStreamConfig( 218 void LogAudioReceiveStreamConfig(
214 const rtclog::StreamConfig& config) override {} 219 const rtclog::StreamConfig& config) override {}
215 void LogAudioSendStreamConfig(const rtclog::StreamConfig& config) override {} 220 void LogAudioSendStreamConfig(const rtclog::StreamConfig& config) override {}
216 void LogIncomingRtpHeader(const RtpPacketReceived& packet) override {} 221 void LogIncomingRtpHeader(const RtpPacketReceived& packet) override {}
217 void LogOutgoingRtpHeader(const RtpPacketToSend& packet, 222 void LogOutgoingRtpHeader(const RtpPacketToSend& packet,
218 int probe_cluster_id) override {} 223 int probe_cluster_id) override {}
219 void LogIncomingRtcpPacket(rtc::ArrayView<const uint8_t> packet) override {} 224 void LogIncomingRtcpPacket(rtc::ArrayView<const uint8_t> packet) override {}
(...skipping 11 matching lines...) Expand all
231 int min_probes, 236 int min_probes,
232 int min_bytes) override{}; 237 int min_bytes) override{};
233 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; 238 void LogProbeResultSuccess(int id, int bitrate_bps) override{};
234 void LogProbeResultFailure(int id, 239 void LogProbeResultFailure(int id,
235 ProbeFailureReason failure_reason) override{}; 240 ProbeFailureReason failure_reason) override{};
236 }; 241 };
237 242
238 } // namespace webrtc 243 } // namespace webrtc
239 244
240 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 245 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
OLDNEW
« no previous file with comments | « webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h ('k') | webrtc/logging/rtc_event_log/rtc_event_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698