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

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

Issue 2848973002: [Mojo Video Capture] Implement a VideoCaptureProvider using the Mojo service (part 1) (Closed)
Patch Set: Incorporated mcasas@'s suggestions from PatchSet 3 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
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_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Methods for specific types of devices. 66 // Methods for specific types of devices.
67 virtual void SetDesktopCaptureWindowIdAsync(gfx::NativeViewId window_id, 67 virtual void SetDesktopCaptureWindowIdAsync(gfx::NativeViewId window_id,
68 base::OnceClosure done_cb) = 0; 68 base::OnceClosure done_cb) = 0;
69 }; 69 };
70 70
71 class CONTENT_EXPORT VideoCaptureProvider { 71 class CONTENT_EXPORT VideoCaptureProvider {
72 public: 72 public:
73 virtual ~VideoCaptureProvider() {} 73 virtual ~VideoCaptureProvider() {}
74 74
75 virtual void Uninitialize() = 0;
76
75 // The passed-in |result_callback| must guarantee that the called 77 // The passed-in |result_callback| must guarantee that the called
76 // instance stays alive until |result_callback| is invoked. 78 // instance stays alive until |result_callback| is invoked.
77 virtual void GetDeviceInfosAsync( 79 virtual void GetDeviceInfosAsync(
78 const base::Callback< 80 const base::Callback<
79 void(const std::vector<media::VideoCaptureDeviceInfo>&)>& 81 void(const std::vector<media::VideoCaptureDeviceInfo>&)>&
80 result_callback) = 0; 82 result_callback) = 0;
81 83
82 virtual std::unique_ptr<VideoCaptureDeviceLauncher> 84 virtual std::unique_ptr<VideoCaptureDeviceLauncher>
83 CreateDeviceLauncher() = 0; 85 CreateDeviceLauncher() = 0;
84 }; 86 };
85 87
86 } // namespace content 88 } // namespace content
87 89
88 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_ 90 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698