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

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

Issue 1295753003: Convenience functions to convert RtcEvents to webrtc types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comments from hlundin@ Created 5 years, 4 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_VIDEO_RTC_EVENT_LOG_H_ 11 #ifndef WEBRTC_VIDEO_RTC_EVENT_LOG_H_
12 #define WEBRTC_VIDEO_RTC_EVENT_LOG_H_ 12 #define WEBRTC_VIDEO_RTC_EVENT_LOG_H_
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "webrtc/base/scoped_ptr.h" 16 #include "webrtc/base/scoped_ptr.h"
17 #include "webrtc/video_receive_stream.h" 17 #include "webrtc/video_receive_stream.h"
18 #include "webrtc/video_send_stream.h" 18 #include "webrtc/video_send_stream.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 21
22 // Forward declaration of storage class that is automatically generated from
23 // the protobuf file.
24 namespace rtclog {
25 class EventStream;
26 } // namespace rtclog
27
28 class RtcEventLogImpl;
29
30 enum class MediaType; 22 enum class MediaType;
31 23
32 class RtcEventLog { 24 class RtcEventLog {
33 public: 25 public:
34 // The types of debug events that are currently supported for logging. 26 // The types of debug events that are currently supported for logging.
35 enum class DebugEvent { kLogStart, kLogEnd, kAudioPlayout }; 27 enum class DebugEvent { kLogStart, kLogEnd, kAudioPlayout };
36 28
37 virtual ~RtcEventLog() {} 29 virtual ~RtcEventLog() {}
38 30
39 static rtc::scoped_ptr<RtcEventLog> Create(); 31 static rtc::scoped_ptr<RtcEventLog> Create();
(...skipping 23 matching lines...) Expand all
63 55
64 // Logs an incoming or outgoing RTCP packet. 56 // Logs an incoming or outgoing RTCP packet.
65 virtual void LogRtcpPacket(bool incoming, 57 virtual void LogRtcpPacket(bool incoming,
66 MediaType media_type, 58 MediaType media_type,
67 const uint8_t* packet, 59 const uint8_t* packet,
68 size_t length) = 0; 60 size_t length) = 0;
69 61
70 // Logs a debug event. 62 // Logs a debug event.
71 virtual void LogDebugEvent(DebugEvent event_type) = 0; 63 virtual void LogDebugEvent(DebugEvent event_type) = 0;
72 64
73 // Reads an RtcEventLog file and returns true when reading was successful.
74 // The result is stored in the given EventStream object.
75 static bool ParseRtcEventLog(const std::string& file_name,
76 rtclog::EventStream* result);
77 }; 65 };
78 66
79 } // namespace webrtc 67 } // namespace webrtc
80 68
81 #endif // WEBRTC_VIDEO_RTC_EVENT_LOG_H_ 69 #endif // WEBRTC_VIDEO_RTC_EVENT_LOG_H_
OLDNEW
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/video/rtc_event_log.cc » ('j') | webrtc/video/rtc_event_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698