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

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

Issue 3012923002: Add the internals of RtcEvent's subclasses (Closed)
Patch Set: 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 // TODO(eladalon): Get rid of this later in the CL-stack. 19 // TODO(eladalon): Get rid of this later in the CL-stack.
20 #include "webrtc/api/rtpparameters.h" 20 #include "webrtc/api/rtpparameters.h"
21 #include "webrtc/common_types.h" 21 #include "webrtc/common_types.h"
22 // TODO(eladalon): Get rid of this later in the CL-stack. 22 // TODO(eladalon): Get rid of this later in the CL-stack.
23 #include "webrtc/logging/rtc_event_log/events/rtc_event_probe_result_failure.h"
24 // TODO(eladalon): Get rid of this later in the CL-stack.
23 #include "webrtc/logging/rtc_event_log/rtc_stream_config.h" 25 #include "webrtc/logging/rtc_event_log/rtc_stream_config.h"
24 #include "webrtc/rtc_base/platform_file.h" 26 #include "webrtc/rtc_base/platform_file.h"
25 27
26 namespace webrtc { 28 namespace webrtc {
27 29
28 namespace rtclog { 30 namespace rtclog {
29 class EventStream; // Storage class automatically generated from protobuf. 31 class EventStream; // Storage class automatically generated from protobuf.
30 } // namespace rtclog 32 } // namespace rtclog
31 33
32 class Clock; 34 class Clock;
33 struct AudioEncoderRuntimeConfig; 35 struct AudioEncoderRuntimeConfig;
34 class RtpPacketReceived; 36 class RtpPacketReceived;
35 class RtpPacketToSend; 37 class RtpPacketToSend;
36 38
37 enum class MediaType; 39 enum class MediaType;
38 enum class BandwidthUsage; 40 enum class BandwidthUsage;
39 41
40 enum PacketDirection { kIncomingPacket = 0, kOutgoingPacket }; 42 enum PacketDirection { kIncomingPacket = 0, kOutgoingPacket };
41 enum ProbeFailureReason {
42 kInvalidSendReceiveInterval,
43 kInvalidSendReceiveRatio,
44 kTimeout
45 };
46 43
47 class RtcEventLog { 44 class RtcEventLog {
48 public: 45 public:
49 virtual ~RtcEventLog() {} 46 virtual ~RtcEventLog() {}
50 47
51 // Factory method to create an RtcEventLog object. 48 // Factory method to create an RtcEventLog object.
52 static std::unique_ptr<RtcEventLog> Create(); 49 static std::unique_ptr<RtcEventLog> Create();
53 // TODO(nisse): webrtc::Clock is deprecated. Delete this method and 50 // TODO(nisse): webrtc::Clock is deprecated. Delete this method and
54 // above forward declaration of Clock when 51 // above forward declaration of Clock when
55 // webrtc/system_wrappers/include/clock.h is deleted. 52 // webrtc/system_wrappers/include/clock.h is deleted.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 int min_probes, 202 int min_probes,
206 int min_bytes) override{}; 203 int min_bytes) override{};
207 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; 204 void LogProbeResultSuccess(int id, int bitrate_bps) override{};
208 void LogProbeResultFailure(int id, 205 void LogProbeResultFailure(int id,
209 ProbeFailureReason failure_reason) override{}; 206 ProbeFailureReason failure_reason) override{};
210 }; 207 };
211 208
212 } // namespace webrtc 209 } // namespace webrtc
213 210
214 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 211 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698