OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/single_thread_task_runner.h" |
10 #include "chrome/renderer/media/cast_receiver_session_delegate.h" | 11 #include "chrome/renderer/media/cast_receiver_session_delegate.h" |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 class WebMediaStream; | 14 class WebMediaStream; |
14 } | 15 } |
15 | 16 |
16 namespace media { | 17 namespace media { |
17 class AudioCapturerSource; | 18 class AudioCapturerSource; |
18 class VideoCaptureFormat; | 19 class VideoCaptureFormat; |
19 class VideoCapturerSource; | 20 class VideoCapturerSource; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void StartAudio(scoped_refptr<CastReceiverAudioValve> audio_valve); | 61 void StartAudio(scoped_refptr<CastReceiverAudioValve> audio_valve); |
61 | 62 |
62 void StartVideo(content::VideoCaptureDeliverFrameCB frame_callback); | 63 void StartVideo(content::VideoCaptureDeliverFrameCB frame_callback); |
63 // Stop Video callbacks. | 64 // Stop Video callbacks. |
64 // Note that this returns immediately, but callbacks do not stop immediately. | 65 // Note that this returns immediately, but callbacks do not stop immediately. |
65 void StopVideo(); | 66 void StopVideo(); |
66 | 67 |
67 media::cast::FrameReceiverConfig audio_config_; | 68 media::cast::FrameReceiverConfig audio_config_; |
68 media::cast::FrameReceiverConfig video_config_; | 69 media::cast::FrameReceiverConfig video_config_; |
69 scoped_ptr<CastReceiverSessionDelegate> delegate_; | 70 scoped_ptr<CastReceiverSessionDelegate> delegate_; |
70 const scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 71 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
71 media::VideoCaptureFormat format_; | 72 media::VideoCaptureFormat format_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(CastReceiverSession); | 74 DISALLOW_COPY_AND_ASSIGN(CastReceiverSession); |
74 }; | 75 }; |
75 | 76 |
76 #endif // CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_H_ | 77 #endif // CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_H_ |
OLD | NEW |