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

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp.h

Issue 2981163003: Refactor rtcp statistics: Rtcp module take narrow interface (Closed)
Patch Set: Created 3 years, 5 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 11 matching lines...) Expand all
22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
23 #include "webrtc/rtc_base/constructormagic.h" 23 #include "webrtc/rtc_base/constructormagic.h"
24 #include "webrtc/rtc_base/deprecation.h" 24 #include "webrtc/rtc_base/deprecation.h"
25 #include "webrtc/rtc_base/optional.h" 25 #include "webrtc/rtc_base/optional.h"
26 26
27 namespace webrtc { 27 namespace webrtc {
28 28
29 // Forward declarations. 29 // Forward declarations.
30 class OverheadObserver; 30 class OverheadObserver;
31 class RateLimiter; 31 class RateLimiter;
32 class ReceiveStatistics; 32 class ReceiveStatisticsReporter;
33 class RemoteBitrateEstimator; 33 class RemoteBitrateEstimator;
34 class RtcEventLog; 34 class RtcEventLog;
35 class RtpReceiver; 35 class RtpReceiver;
36 class Transport; 36 class Transport;
37 class VideoBitrateAllocationObserver; 37 class VideoBitrateAllocationObserver;
38 38
39 RTPExtensionType StringToRtpExtensionType(const std::string& extension); 39 RTPExtensionType StringToRtpExtensionType(const std::string& extension);
40 40
41 namespace rtcp { 41 namespace rtcp {
42 class TransportFeedback; 42 class TransportFeedback;
43 } 43 }
44 44
45 class RtpRtcp : public Module { 45 class RtpRtcp : public Module {
46 public: 46 public:
47 struct Configuration { 47 struct Configuration {
48 Configuration(); 48 Configuration();
49 49
50 // True for a audio version of the RTP/RTCP module object false will create 50 // True for a audio version of the RTP/RTCP module object false will create
51 // a video version. 51 // a video version.
52 bool audio = false; 52 bool audio = false;
53 bool receiver_only = false; 53 bool receiver_only = false;
54 54
55 // The clock to use to read time. If nullptr then system clock will be used. 55 // The clock to use to read time. If nullptr then system clock will be used.
56 Clock* clock = nullptr; 56 Clock* clock = nullptr;
57 57
58 ReceiveStatistics* receive_statistics; 58 ReceiveStatisticsReporter* receive_statistics;
59 59
60 // Transport object that will be called when packets are ready to be sent 60 // Transport object that will be called when packets are ready to be sent
61 // out on the network. 61 // out on the network.
62 Transport* outgoing_transport = nullptr; 62 Transport* outgoing_transport = nullptr;
63 63
64 // Called when the receiver request a intra frame. 64 // Called when the receiver request a intra frame.
65 RtcpIntraFrameObserver* intra_frame_callback = nullptr; 65 RtcpIntraFrameObserver* intra_frame_callback = nullptr;
66 66
67 // Called when we receive a changed estimate from the receiver of out 67 // Called when we receive a changed estimate from the receiver of out
68 // stream. 68 // stream.
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; 463 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0;
464 464
465 // Sends a request for a keyframe. 465 // Sends a request for a keyframe.
466 // Returns -1 on failure else 0. 466 // Returns -1 on failure else 0.
467 virtual int32_t RequestKeyFrame() = 0; 467 virtual int32_t RequestKeyFrame() = 0;
468 }; 468 };
469 469
470 } // namespace webrtc 470 } // namespace webrtc
471 471
472 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 472 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/include/receive_statistics.h ('k') | webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698