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/audio_sender/audio_sender.h" | 9 #include "media/cast/audio_sender/audio_sender.h" |
10 #include "media/cast/cast_config.h" | 10 #include "media/cast/cast_config.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 CastSenderImpl(scoped_refptr<CastEnvironment> cast_environment, | 27 CastSenderImpl(scoped_refptr<CastEnvironment> cast_environment, |
28 transport::CastTransportSender* const transport_sender); | 28 transport::CastTransportSender* const transport_sender); |
29 | 29 |
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 scoped_refptr<GpuVideoAcceleratorFactories>& gpu_factories) | 36 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, |
| 37 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) |
37 OVERRIDE; | 38 OVERRIDE; |
38 | 39 |
39 virtual ~CastSenderImpl(); | 40 virtual ~CastSenderImpl(); |
40 | 41 |
41 virtual scoped_refptr<AudioFrameInput> audio_frame_input() OVERRIDE; | 42 virtual scoped_refptr<AudioFrameInput> audio_frame_input() OVERRIDE; |
42 virtual scoped_refptr<VideoFrameInput> video_frame_input() OVERRIDE; | 43 virtual scoped_refptr<VideoFrameInput> video_frame_input() OVERRIDE; |
43 | 44 |
44 virtual transport::PacketReceiverCallback packet_receiver() OVERRIDE; | 45 virtual transport::PacketReceiverCallback packet_receiver() OVERRIDE; |
45 | 46 |
46 private: | 47 private: |
(...skipping 14 matching lines...) Expand all Loading... |
61 // NOTE: Weak pointers must be invalidated before all other member variables. | 62 // NOTE: Weak pointers must be invalidated before all other member variables. |
62 base::WeakPtrFactory<CastSenderImpl> weak_factory_; | 63 base::WeakPtrFactory<CastSenderImpl> weak_factory_; |
63 | 64 |
64 DISALLOW_COPY_AND_ASSIGN(CastSenderImpl); | 65 DISALLOW_COPY_AND_ASSIGN(CastSenderImpl); |
65 }; | 66 }; |
66 | 67 |
67 } // namespace cast | 68 } // namespace cast |
68 } // namespace media | 69 } // namespace media |
69 | 70 |
70 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_ | 71 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_ |
OLD | NEW |