OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef MEDIA_CAST_CAST_SENDER_IMPL_H_ | 4 #ifndef MEDIA_CAST_CAST_SENDER_IMPL_H_ |
5 #define MEDIA_CAST_CAST_SENDER_IMPL_H_ | 5 #define MEDIA_CAST_CAST_SENDER_IMPL_H_ |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "media/cast/cast_config.h" | 9 #include "media/cast/cast_config.h" |
10 #include "media/cast/cast_defines.h" | 10 #include "media/cast/cast_defines.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 virtual void InitializeAudio( | 30 virtual void InitializeAudio( |
31 const AudioSenderConfig& audio_config, | 31 const AudioSenderConfig& audio_config, |
32 const CastInitializationCallback& cast_initialization_cb) OVERRIDE; | 32 const CastInitializationCallback& cast_initialization_cb) OVERRIDE; |
33 virtual void InitializeVideo( | 33 virtual void InitializeVideo( |
34 const VideoSenderConfig& video_config, | 34 const VideoSenderConfig& video_config, |
35 const CastInitializationCallback& cast_initialization_cb, | 35 const CastInitializationCallback& cast_initialization_cb, |
36 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, | 36 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, |
37 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) | 37 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) |
38 OVERRIDE; | 38 OVERRIDE; |
39 | 39 |
| 40 virtual void SetTargetPlayoutDelay( |
| 41 base::TimeDelta new_target_playout_delay) OVERRIDE; |
| 42 |
40 virtual ~CastSenderImpl(); | 43 virtual ~CastSenderImpl(); |
41 | 44 |
42 virtual scoped_refptr<AudioFrameInput> audio_frame_input() OVERRIDE; | 45 virtual scoped_refptr<AudioFrameInput> audio_frame_input() OVERRIDE; |
43 virtual scoped_refptr<VideoFrameInput> video_frame_input() OVERRIDE; | 46 virtual scoped_refptr<VideoFrameInput> video_frame_input() OVERRIDE; |
44 | 47 |
45 private: | 48 private: |
46 void ReceivedPacket(scoped_ptr<Packet> packet); | 49 void ReceivedPacket(scoped_ptr<Packet> packet); |
47 | 50 |
48 CastInitializationCallback initialization_callback_; | 51 CastInitializationCallback initialization_callback_; |
49 scoped_ptr<AudioSender> audio_sender_; | 52 scoped_ptr<AudioSender> audio_sender_; |
(...skipping 10 matching lines...) Expand all Loading... |
60 // NOTE: Weak pointers must be invalidated before all other member variables. | 63 // NOTE: Weak pointers must be invalidated before all other member variables. |
61 base::WeakPtrFactory<CastSenderImpl> weak_factory_; | 64 base::WeakPtrFactory<CastSenderImpl> weak_factory_; |
62 | 65 |
63 DISALLOW_COPY_AND_ASSIGN(CastSenderImpl); | 66 DISALLOW_COPY_AND_ASSIGN(CastSenderImpl); |
64 }; | 67 }; |
65 | 68 |
66 } // namespace cast | 69 } // namespace cast |
67 } // namespace media | 70 } // namespace media |
68 | 71 |
69 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_ | 72 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_ |
OLD | NEW |