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

Side by Side Diff: content/browser/renderer_host/media/in_process_video_capture_device_launcher.h

Issue 2902203002: [Mojo Video Capture] Hook up connection lost events (Closed)
Patch Set: Fix duplicate member introduced during merging Created 3 years, 6 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 | « no previous file | content/browser/renderer_host/media/in_process_video_capture_device_launcher.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_VIDEO_CAPTURE_DEVICE_LAUN CHER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_VIDEO_CAPTURE_DEVICE_LAUN CHER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_VIDEO_CAPTURE_DEVICE_LAUN CHER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_VIDEO_CAPTURE_DEVICE_LAUN CHER_H_
7 7
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "content/browser/renderer_host/media/video_capture_controller.h" 9 #include "content/browser/renderer_host/media/video_capture_controller.h"
10 #include "content/browser/renderer_host/media/video_capture_provider.h" 10 #include "content/browser/renderer_host/media/video_capture_provider.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 InProcessVideoCaptureDeviceLauncher( 25 InProcessVideoCaptureDeviceLauncher(
26 scoped_refptr<base::SingleThreadTaskRunner> device_task_runner, 26 scoped_refptr<base::SingleThreadTaskRunner> device_task_runner,
27 media::VideoCaptureSystem* video_capture_system); 27 media::VideoCaptureSystem* video_capture_system);
28 ~InProcessVideoCaptureDeviceLauncher() override; 28 ~InProcessVideoCaptureDeviceLauncher() override;
29 29
30 void LaunchDeviceAsync(const std::string& device_id, 30 void LaunchDeviceAsync(const std::string& device_id,
31 MediaStreamType stream_type, 31 MediaStreamType stream_type,
32 const media::VideoCaptureParams& params, 32 const media::VideoCaptureParams& params,
33 base::WeakPtr<media::VideoFrameReceiver> receiver, 33 base::WeakPtr<media::VideoFrameReceiver> receiver,
34 base::OnceClosure connection_lost_cb,
34 Callbacks* callbacks, 35 Callbacks* callbacks,
35 base::OnceClosure done_cb) override; 36 base::OnceClosure done_cb) override;
36 37
37 void AbortLaunch() override; 38 void AbortLaunch() override;
38 39
39 private: 40 private:
40 using ReceiveDeviceCallback = 41 using ReceiveDeviceCallback =
41 base::Callback<void(std::unique_ptr<media::VideoCaptureDevice> device)>; 42 base::Callback<void(std::unique_ptr<media::VideoCaptureDevice> device)>;
42 43
43 enum class State { 44 enum class State {
(...skipping 29 matching lines...) Expand all
73 ReceiveDeviceCallback result_callback); 74 ReceiveDeviceCallback result_callback);
74 75
75 const scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_; 76 const scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
76 media::VideoCaptureSystem* const video_capture_system_; 77 media::VideoCaptureSystem* const video_capture_system_;
77 State state_; 78 State state_;
78 }; 79 };
79 80
80 } // namespace content 81 } // namespace content
81 82
82 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_VIDEO_CAPTURE_DEVICE_L AUNCHER_H_ 83 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_VIDEO_CAPTURE_DEVICE_L AUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698