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

Side by Side Diff: content/browser/renderer_host/media/in_process_buildable_video_capture_device.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
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_BUILDABLE_VIDEO_CAPTURE_D EVICE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_BUILDABLE_VIDEO_CAPTURE_D EVICE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_BUILDABLE_VIDEO_CAPTURE_D EVICE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_BUILDABLE_VIDEO_CAPTURE_D EVICE_H_
7 7
8 #include "content/browser/renderer_host/media/video_capture_controller.h" 8 #include "content/browser/renderer_host/media/video_capture_controller.h"
9 #include "content/browser/renderer_host/media/video_capture_provider.h"
9 #include "content/public/common/media_stream_request.h" 10 #include "content/public/common/media_stream_request.h"
10 #include "media/capture/video/video_capture_device.h" 11 #include "media/capture/video/video_capture_device.h"
11 #include "media/capture/video/video_capture_device_client.h" 12 #include "media/capture/video/video_capture_device_client.h"
12 #include "media/capture/video/video_capture_device_descriptor.h" 13 #include "media/capture/video/video_capture_device_descriptor.h"
13 #include "media/capture/video/video_capture_system.h" 14 #include "media/capture/video/video_capture_system.h"
14 15
15 namespace content { 16 namespace content {
16 17
17 // Implementation of BuildableVideoCaptureDevice that creates capture devices 18 // Implementation of BuildableVideoCaptureDevice that creates capture devices
18 // in the same process as it is being operated on, which must be the Browser 19 // in the same process as it is being operated on, which must be the Browser
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 const scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_; 96 const scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
96 media::VideoCaptureSystem* const video_capture_system_; 97 media::VideoCaptureSystem* const video_capture_system_;
97 std::unique_ptr<media::VideoCaptureDevice> device_; 98 std::unique_ptr<media::VideoCaptureDevice> device_;
98 State state_ = State::NO_DEVICE; 99 State state_ = State::NO_DEVICE;
99 }; 100 };
100 101
101 } // namespace content 102 } // namespace content
102 103
103 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_BUILDABLE_VIDEO_CAPTUR E_DEVICE_H_ 104 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_IN_PROCESS_BUILDABLE_VIDEO_CAPTUR E_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698