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

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: Rebased 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
« no previous file with comments | « webrtc/logging/rtc_event_log/events/rtc_event_video_send_stream_config.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
23 #include "webrtc/logging/rtc_event_log/events/rtc_event_probe_result_failure.h"
22 #include "webrtc/rtc_base/platform_file.h" 24 #include "webrtc/rtc_base/platform_file.h"
23 25
24 namespace webrtc { 26 namespace webrtc {
25 27
26 namespace rtclog { 28 namespace rtclog {
27 class EventStream; // Storage class automatically generated from protobuf. 29 class EventStream; // Storage class automatically generated from protobuf.
28 // TODO(eladalon): Get rid of this when deprecated methods are removed. 30 // TODO(eladalon): Get rid of this when deprecated methods are removed.
29 struct StreamConfig; 31 struct StreamConfig;
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 int min_probes, 192 int min_probes,
196 int min_bytes) override{}; 193 int min_bytes) override{};
197 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; 194 void LogProbeResultSuccess(int id, int bitrate_bps) override{};
198 void LogProbeResultFailure(int id, 195 void LogProbeResultFailure(int id,
199 ProbeFailureReason failure_reason) override{}; 196 ProbeFailureReason failure_reason) override{};
200 }; 197 };
201 198
202 } // namespace webrtc 199 } // namespace webrtc
203 200
204 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 201 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
OLDNEW
« no previous file with comments | « webrtc/logging/rtc_event_log/events/rtc_event_video_send_stream_config.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698