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

Side by Side Diff: chrome/renderer/media/cast_receiver_session.h

Issue 1123733002: [chrome/renderer/media] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 5 years, 7 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_ipc_dispatcher_unittest.cc ('k') | chrome/renderer/media/cast_receiver_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698