| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_ | 5 #ifndef SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_ |
| 6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_ | 6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include "media/base/video_capture_types.h" | |
| 9 #include "media/capture/video/video_capture_device.h" | 8 #include "media/capture/video/video_capture_device.h" |
| 10 #include "media/capture/video/video_capture_device_client.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" | 11 #include "services/video_capture/public/interfaces/video_capture_device_proxy.mo
jom.h" |
| 12 | 12 |
| 13 namespace video_capture { | 13 namespace video_capture { |
| 14 | 14 |
| 15 // Implementation of mojom::VideoCaptureDeviceProxy backed by a given instance | 15 // Implementation of mojom::VideoCaptureDeviceProxy backed by a given instance |
| 16 // of media::VideoCaptureDevice. | 16 // of media::VideoCaptureDevice. |
| 17 class VideoCaptureDeviceProxyImpl : public mojom::VideoCaptureDeviceProxy { | 17 class VideoCaptureDeviceProxyImpl : public mojom::VideoCaptureDeviceProxy { |
| 18 public: | 18 public: |
| 19 VideoCaptureDeviceProxyImpl(std::unique_ptr<media::VideoCaptureDevice> device, | 19 VideoCaptureDeviceProxyImpl(std::unique_ptr<media::VideoCaptureDevice> device, |
| 20 const media::VideoCaptureJpegDecoderFactoryCB& | 20 const media::VideoCaptureJpegDecoderFactoryCB& |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 const std::unique_ptr<media::VideoCaptureDevice> device_; | 35 const std::unique_ptr<media::VideoCaptureDevice> device_; |
| 36 media::VideoCaptureJpegDecoderFactoryCB jpeg_decoder_factory_callback_; | 36 media::VideoCaptureJpegDecoderFactoryCB jpeg_decoder_factory_callback_; |
| 37 bool device_running_; | 37 bool device_running_; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace video_capture | 40 } // namespace video_capture |
| 41 | 41 |
| 42 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_ | 42 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_IMPL_H_ |
| OLD | NEW |