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

Side by Side Diff: webrtc/video_engine/vie_channel.h

Issue 1152733005: Use one scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove from BUILD.gn Created 5 years, 6 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/test/win/d3d_renderer.h ('k') | webrtc/video_engine/vie_channel.cc » ('j') | 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) 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
11 #ifndef WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ 11 #ifndef WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_
12 #define WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ 12 #define WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_
13 13
14 #include <list> 14 #include <list>
15 15
16 #include "webrtc/base/scoped_ptr.h" 16 #include "webrtc/base/scoped_ptr.h"
17 #include "webrtc/base/scoped_ref_ptr.h"
17 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h" 18 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h"
18 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" 19 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h"
19 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" 20 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h"
20 #include "webrtc/modules/video_coding/main/interface/video_coding_defines.h" 21 #include "webrtc/modules/video_coding/main/interface/video_coding_defines.h"
21 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" 22 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
22 #include "webrtc/system_wrappers/interface/scoped_refptr.h"
23 #include "webrtc/system_wrappers/interface/tick_util.h" 23 #include "webrtc/system_wrappers/interface/tick_util.h"
24 #include "webrtc/typedefs.h" 24 #include "webrtc/typedefs.h"
25 #include "webrtc/video_engine/vie_defines.h" 25 #include "webrtc/video_engine/vie_defines.h"
26 #include "webrtc/video_engine/vie_receiver.h" 26 #include "webrtc/video_engine/vie_receiver.h"
27 #include "webrtc/video_engine/vie_sync_module.h" 27 #include "webrtc/video_engine/vie_sync_module.h"
28 28
29 namespace webrtc { 29 namespace webrtc {
30 30
31 class CallStatsObserver; 31 class CallStatsObserver;
32 class ChannelStatsObserver; 32 class ChannelStatsObserver;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 int32_t SetMTU(uint16_t mtu); 279 int32_t SetMTU(uint16_t mtu);
280 280
281 // Returns maximum allowed payload size, i.e. the maximum allowed size of 281 // Returns maximum allowed payload size, i.e. the maximum allowed size of
282 // encoded data in each packet. 282 // encoded data in each packet.
283 uint16_t MaxDataPayloadLength() const; 283 uint16_t MaxDataPayloadLength() const;
284 int32_t SetMaxPacketBurstSize(uint16_t max_number_of_packets); 284 int32_t SetMaxPacketBurstSize(uint16_t max_number_of_packets);
285 int32_t SetPacketBurstSpreadState(bool enable, const uint16_t frame_periodMS); 285 int32_t SetPacketBurstSpreadState(bool enable, const uint16_t frame_periodMS);
286 286
287 // Gets the modules used by the channel. 287 // Gets the modules used by the channel.
288 RtpRtcp* rtp_rtcp(); 288 RtpRtcp* rtp_rtcp();
289 scoped_refptr<PayloadRouter> send_payload_router(); 289 rtc::scoped_refptr<PayloadRouter> send_payload_router();
290 VCMProtectionCallback* vcm_protection_callback(); 290 VCMProtectionCallback* vcm_protection_callback();
291 291
292 292
293 CallStatsObserver* GetStatsObserver(); 293 CallStatsObserver* GetStatsObserver();
294 294
295 // Implements VCMReceiveCallback. 295 // Implements VCMReceiveCallback.
296 virtual int32_t FrameToRender(VideoFrame& video_frame); // NOLINT 296 virtual int32_t FrameToRender(VideoFrame& video_frame); // NOLINT
297 297
298 // Implements VCMReceiveCallback. 298 // Implements VCMReceiveCallback.
299 virtual int32_t ReceivedDecodedReferenceFrame( 299 virtual int32_t ReceivedDecodedReferenceFrame(
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 uint8_t num_socket_threads_; 469 uint8_t num_socket_threads_;
470 470
471 // Used for all registered callbacks except rendering. 471 // Used for all registered callbacks except rendering.
472 rtc::scoped_ptr<CriticalSectionWrapper> callback_cs_; 472 rtc::scoped_ptr<CriticalSectionWrapper> callback_cs_;
473 rtc::scoped_ptr<CriticalSectionWrapper> rtp_rtcp_cs_; 473 rtc::scoped_ptr<CriticalSectionWrapper> rtp_rtcp_cs_;
474 474
475 // Owned modules/classes. 475 // Owned modules/classes.
476 rtc::scoped_ptr<RtpRtcp> rtp_rtcp_; 476 rtc::scoped_ptr<RtpRtcp> rtp_rtcp_;
477 std::list<RtpRtcp*> simulcast_rtp_rtcp_; 477 std::list<RtpRtcp*> simulcast_rtp_rtcp_;
478 std::list<RtpRtcp*> removed_rtp_rtcp_; 478 std::list<RtpRtcp*> removed_rtp_rtcp_;
479 scoped_refptr<PayloadRouter> send_payload_router_; 479 rtc::scoped_refptr<PayloadRouter> send_payload_router_;
480 rtc::scoped_ptr<ViEChannelProtectionCallback> vcm_protection_callback_; 480 rtc::scoped_ptr<ViEChannelProtectionCallback> vcm_protection_callback_;
481 481
482 VideoCodingModule* const vcm_; 482 VideoCodingModule* const vcm_;
483 ViEReceiver vie_receiver_; 483 ViEReceiver vie_receiver_;
484 ViESyncModule vie_sync_; 484 ViESyncModule vie_sync_;
485 485
486 // Helper to report call statistics. 486 // Helper to report call statistics.
487 rtc::scoped_ptr<ChannelStatsObserver> stats_observer_; 487 rtc::scoped_ptr<ChannelStatsObserver> stats_observer_;
488 488
489 // Not owned. 489 // Not owned.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 int nack_history_size_sender_; 521 int nack_history_size_sender_;
522 int max_nack_reordering_threshold_; 522 int max_nack_reordering_threshold_;
523 I420FrameCallback* pre_render_callback_; 523 I420FrameCallback* pre_render_callback_;
524 524
525 rtc::scoped_ptr<ReportBlockStats> report_block_stats_sender_; 525 rtc::scoped_ptr<ReportBlockStats> report_block_stats_sender_;
526 }; 526 };
527 527
528 } // namespace webrtc 528 } // namespace webrtc
529 529
530 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ 530 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/test/win/d3d_renderer.h ('k') | webrtc/video_engine/vie_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698