OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOJO_SERVICE_VIDEO_CAPTURE_DEVICE_LA UNCHER_H_ | |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOJO_SERVICE_VIDEO_CAPTURE_DEVICE_LA UNCHER_H_ | |
7 | |
8 #include "content/browser/renderer_host/media/video_capture_controller.h" | |
9 #include "content/browser/renderer_host/media/video_capture_provider.h" | |
mcasas
2017/05/02 01:06:23
Are these two headers needed? Try to forward decla
chfremer
2017/05/02 16:36:42
Indeed not needed. Thanks.
Done.
| |
10 #include "content/public/common/media_stream_request.h" | |
11 #include "services/video_capture/public/interfaces/device_factory.mojom.h" | |
12 | |
13 namespace content { | |
14 | |
15 class MojoServiceVideoCaptureDeviceLauncher | |
16 : public VideoCaptureDeviceLauncher { | |
17 public: | |
18 MojoServiceVideoCaptureDeviceLauncher( | |
19 video_capture::mojom::DeviceFactoryPtr* device_factory); | |
20 ~MojoServiceVideoCaptureDeviceLauncher() override; | |
21 | |
22 // VideoCaptureDeviceLauncher implementation. | |
23 void LaunchDeviceAsync(const std::string& device_id, | |
24 MediaStreamType stream_type, | |
25 const media::VideoCaptureParams& params, | |
26 base::WeakPtr<media::VideoFrameReceiver> receiver, | |
27 Callbacks* callbacks, | |
28 base::OnceClosure done_cb) override; | |
29 void AbortLaunch() override; | |
30 | |
31 void OnUtilizationReport(int frame_feedback_id, double utilization); | |
32 | |
33 private: | |
34 video_capture::mojom::DeviceFactoryPtr* const device_factory_; | |
35 }; | |
36 | |
37 } // namespace content | |
38 | |
39 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOJO_SERVICE_VIDEO_CAPTURE_DEVICE _LAUNCHER_H_ | |
OLD | NEW |