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

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

Issue 2848973002: [Mojo Video Capture] Implement a VideoCaptureProvider using the Mojo service (part 1) (Closed)
Patch Set: Rename MojoServiceVideoCapture* to ServiceVideoCapture* Created 3 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
(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_SERVICE_LAUNCHED_VIDEO_CAPTURE_DEVIC E_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_SERVICE_LAUNCHED_VIDEO_CAPTURE_DEVIC E_H_
7
8 #include "content/browser/renderer_host/media/video_capture_provider.h"
9 #include "services/video_capture/public/interfaces/device.mojom.h"
10
11 namespace content {
12
13 // Implementation of LaunchedVideoCaptureDevice that uses the "video_capture"
14 // service.
15 class ServiceLaunchedVideoCaptureDevice : public LaunchedVideoCaptureDevice {
16 public:
17 ServiceLaunchedVideoCaptureDevice(video_capture::mojom::DevicePtr device);
18 ~ServiceLaunchedVideoCaptureDevice() override;
19
20 // LaunchedVideoCaptureDevice implementation.
21 void GetPhotoCapabilities(
22 media::VideoCaptureDevice::GetPhotoCapabilitiesCallback callback)
23 const override;
24 void SetPhotoOptions(
25 media::mojom::PhotoSettingsPtr settings,
26 media::VideoCaptureDevice::SetPhotoOptionsCallback callback) override;
27 void TakePhoto(
28 media::VideoCaptureDevice::TakePhotoCallback callback) override;
29 void MaybeSuspendDevice() override;
30 void ResumeDevice() override;
31 void RequestRefreshFrame() override;
32
33 void SetDesktopCaptureWindowIdAsync(gfx::NativeViewId window_id,
34 base::OnceClosure done_cb) override;
35
36 void OnUtilizationReport(int frame_feedback_id, double utilization) override;
37
38 private:
39 video_capture::mojom::DevicePtr device_;
mcasas 2017/05/03 19:10:23 This can probably be const (since is passed on cto
chfremer 2017/05/03 21:29:36 You are correct that, in this CL, it can be const.
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_SERVICE_LAUNCHED_VIDEO_CAPTURE_DE VICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698