| 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 CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | 
| 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | 
| 7 | 7 | 
|  | 8 #include "media/capture/imagecapture/image_capture.mojom.h" | 
| 8 #include "mojo/public/cpp/bindings/interface_request.h" | 9 #include "mojo/public/cpp/bindings/interface_request.h" | 
| 9 #include "mojo/public/cpp/bindings/string.h" | 10 #include "mojo/public/cpp/bindings/string.h" | 
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" | 
| 11 #include "third_party/WebKit/public/platform/modules/imagecapture/image_capture.
    mojom.h" |  | 
| 12 | 12 | 
| 13 namespace content { | 13 namespace content { | 
| 14 | 14 | 
| 15 class ImageCaptureImpl : public blink::mojom::ImageCapture { | 15 class ImageCaptureImpl : public media::mojom::ImageCapture { | 
| 16  public: | 16  public: | 
| 17   static void Create( | 17   static void Create( | 
| 18       mojo::InterfaceRequest<blink::mojom::ImageCapture> request); | 18       mojo::InterfaceRequest<media::mojom::ImageCapture> request); | 
| 19   ~ImageCaptureImpl() override; | 19   ~ImageCaptureImpl() override; | 
| 20 | 20 | 
| 21   void GetCapabilities(const mojo::String& source_id, | 21   void GetCapabilities(const mojo::String& source_id, | 
| 22                        const GetCapabilitiesCallback& callback) override; | 22                        const GetCapabilitiesCallback& callback) override; | 
| 23 | 23 | 
| 24   void TakePhoto(const mojo::String& source_id, | 24   void TakePhoto(const mojo::String& source_id, | 
| 25                  const TakePhotoCallback& callback) override; | 25                  const TakePhotoCallback& callback) override; | 
| 26 | 26 | 
| 27  private: | 27  private: | 
| 28   explicit ImageCaptureImpl( | 28   explicit ImageCaptureImpl( | 
| 29       mojo::InterfaceRequest<blink::mojom::ImageCapture> request); | 29       mojo::InterfaceRequest<media::mojom::ImageCapture> request); | 
| 30 | 30 | 
| 31   mojo::StrongBinding<blink::mojom::ImageCapture> binding_; | 31   mojo::StrongBinding<media::mojom::ImageCapture> binding_; | 
| 32 | 32 | 
| 33   DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl); | 33   DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl); | 
| 34 }; | 34 }; | 
| 35 | 35 | 
| 36 }  // namespace content | 36 }  // namespace content | 
| 37 | 37 | 
| 38 #endif  // CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | 38 #endif  // CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | 
| OLD | NEW | 
|---|