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

Side by Side Diff: media/cast/sender/video_sender.h

Issue 2113783002: Refactoring: Merge VideoSenderConfig and AudioSenderConfig. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed mek's comment. Created 4 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
« no previous file with comments | « media/cast/sender/video_encoder_unittest.cc ('k') | media/cast/sender/video_sender.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_SENDER_VIDEO_SENDER_H_ 5 #ifndef MEDIA_CAST_SENDER_VIDEO_SENDER_H_
6 #define MEDIA_CAST_SENDER_VIDEO_SENDER_H_ 6 #define MEDIA_CAST_SENDER_VIDEO_SENDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 25 matching lines...) Expand all
36 // This class owns all objects related to sending video, objects that create RTP 36 // This class owns all objects related to sending video, objects that create RTP
37 // packets, congestion control, video encoder, parsing and sending of 37 // packets, congestion control, video encoder, parsing and sending of
38 // RTCP packets. 38 // RTCP packets.
39 // Additionally it posts a bunch of delayed tasks to the main thread for various 39 // Additionally it posts a bunch of delayed tasks to the main thread for various
40 // timeouts. 40 // timeouts.
41 class VideoSender : public FrameSender, 41 class VideoSender : public FrameSender,
42 public base::NonThreadSafe, 42 public base::NonThreadSafe,
43 public base::SupportsWeakPtr<VideoSender> { 43 public base::SupportsWeakPtr<VideoSender> {
44 public: 44 public:
45 VideoSender(scoped_refptr<CastEnvironment> cast_environment, 45 VideoSender(scoped_refptr<CastEnvironment> cast_environment,
46 const VideoSenderConfig& video_config, 46 const FrameSenderConfig& video_config,
47 const StatusChangeCallback& status_change_cb, 47 const StatusChangeCallback& status_change_cb,
48 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, 48 const CreateVideoEncodeAcceleratorCallback& create_vea_cb,
49 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb, 49 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb,
50 CastTransport* const transport_sender, 50 CastTransport* const transport_sender,
51 const PlayoutDelayChangeCB& playout_delay_change_cb); 51 const PlayoutDelayChangeCB& playout_delay_change_cb);
52 52
53 ~VideoSender() override; 53 ~VideoSender() override;
54 54
55 // Note: It is not guaranteed that |video_frame| will actually be encoded and 55 // Note: It is not guaranteed that |video_frame| will actually be encoded and
56 // sent, if VideoSender detects too many frames in flight. Therefore, clients 56 // sent, if VideoSender detects too many frames in flight. Therefore, clients
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // NOTE: Weak pointers must be invalidated before all other member variables. 113 // NOTE: Weak pointers must be invalidated before all other member variables.
114 base::WeakPtrFactory<VideoSender> weak_factory_; 114 base::WeakPtrFactory<VideoSender> weak_factory_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(VideoSender); 116 DISALLOW_COPY_AND_ASSIGN(VideoSender);
117 }; 117 };
118 118
119 } // namespace cast 119 } // namespace cast
120 } // namespace media 120 } // namespace media
121 121
122 #endif // MEDIA_CAST_SENDER_VIDEO_SENDER_H_ 122 #endif // MEDIA_CAST_SENDER_VIDEO_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/sender/video_encoder_unittest.cc ('k') | media/cast/sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698