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

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

Issue 2800493002: [Mojo Video Capture] Create abstraction VideoCaptureProvider (Closed)
Patch Set: Incorporated suggestions from PatchSet 2 Created 3 years, 8 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 2016 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_IN_PROCESS_VIDEO_CAPTURE_SYSTEM_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_VIDEO_CAPTURE_SYSTEM_H_
7
8 #include "base/memory/ptr_util.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/browser/renderer_host/media/video_capture_provider.h"
11 #include "media/capture/video/video_capture_system.h"
12
13 namespace content {
14
15 class CONTENT_EXPORT InProcessVideoCaptureProvider
16 : public VideoCaptureProvider {
17 public:
18 InProcessVideoCaptureProvider(
19 std::unique_ptr<media::VideoCaptureSystem> video_capture_system,
20 scoped_refptr<base::SingleThreadTaskRunner> device_task_runner);
21 ~InProcessVideoCaptureProvider() override;
22
23 void GetDeviceInfosAsync(
24 const base::Callback<void(
25 const std::vector<media::VideoCaptureDeviceInfo>&)>& result_callback)
26 override;
27
28 std::unique_ptr<BuildableVideoCaptureDevice> CreateBuildableDevice(
29 const std::string& device_id,
30 MediaStreamType stream_type) override;
31
32 private:
33 const std::unique_ptr<media::VideoCaptureSystem> video_capture_system_;
34 // The message loop of media stream device thread, where VCD's live.
35 scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_VIDEO_CAPTURE_SYSTEM_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698