Chromium Code Reviews| Index: content/browser/media/capture/image_capture_impl.h |
| diff --git a/content/browser/media/capture/image_capture_impl.h b/content/browser/media/capture/image_capture_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4361a551e360eca49e7f302bad1d84a5d6d439a7 |
| --- /dev/null |
| +++ b/content/browser/media/capture/image_capture_impl.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ |
| +#define CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ |
| + |
| +#include "mojo/public/cpp/bindings/binding.h" |
| +#include "mojo/public/cpp/bindings/interface_request.h" |
| +#include "mojo/public/cpp/bindings/string.h" |
| +#include "third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom.h" |
| + |
| +namespace content { |
| + |
| +class ImageCaptureImpl : public blink::mojom::ImageCapture { |
| + public: |
| + explicit ImageCaptureImpl( |
| + mojo::InterfaceRequest<blink::mojom::ImageCapture> request); |
| + ~ImageCaptureImpl() override; |
| + |
| + void TakePhoto(const mojo::String& sourceid, |
| + const TakePhotoCallback& callback) override; |
| + |
| + private: |
| + mojo::Binding<blink::mojom::ImageCapture> binding_; |
|
Reilly Grant (use Gerrit)
2016/04/28 00:44:03
We should not just leak ImageCaptureImpls indefini
mcasas
2016/04/28 01:03:09
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ |