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

Side by Side Diff: services/video_capture/video_capture_device_proxy_impl.h

Issue 2502483003: [Mojo Video Capture] Cleanup naming of classes/files in services/video_capture (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_
6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_
7
8 #include "media/capture/video/video_capture_device.h"
9 #include "media/capture/video/video_capture_device_client.h"
10 #include "media/capture/video_capture_types.h"
11 #include "services/video_capture/public/interfaces/video_capture_device_proxy.mo jom.h"
12
13 namespace video_capture {
14
15 // Implementation of mojom::VideoCaptureDeviceProxy backed by a given instance
16 // of media::VideoCaptureDevice.
17 class VideoCaptureDeviceProxyImpl : public mojom::VideoCaptureDeviceProxy {
18 public:
19 VideoCaptureDeviceProxyImpl(std::unique_ptr<media::VideoCaptureDevice> device,
20 const media::VideoCaptureJpegDecoderFactoryCB&
21 jpeg_decoder_factory_callback);
22 ~VideoCaptureDeviceProxyImpl() override;
23
24 // mojom::VideoCaptureDeviceProxy:
25 void Start(const VideoCaptureSettings& requested_settings,
26 mojom::VideoFrameReceiverPtr receiver) override;
27
28 void Stop();
29
30 void OnClientConnectionErrorOrClose();
31
32 private:
33 const std::unique_ptr<media::VideoCaptureDevice> device_;
34 media::VideoCaptureJpegDecoderFactoryCB jpeg_decoder_factory_callback_;
35 bool device_running_;
36 };
37
38 } // namespace video_capture
39
40 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « services/video_capture/service_unittest.cc ('k') | services/video_capture/video_capture_device_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698