Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | |
| 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | |
| 7 | |
| 8 #include "mojo/public/cpp/bindings/binding.h" | |
| 9 #include "mojo/public/cpp/bindings/interface_request.h" | |
| 10 #include "mojo/public/cpp/bindings/string.h" | |
| 11 #include "third_party/WebKit/public/platform/modules/imagecapture/image_capture. mojom.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 class ImageCaptureImpl : public blink::mojom::ImageCapture { | |
| 16 public: | |
| 17 explicit ImageCaptureImpl( | |
| 18 mojo::InterfaceRequest<blink::mojom::ImageCapture> request); | |
| 19 ~ImageCaptureImpl() override; | |
| 20 | |
| 21 void TakePhoto(const mojo::String& sourceid, | |
| 22 const TakePhotoCallback& callback) override; | |
| 23 | |
| 24 private: | |
| 25 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.
| |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl); | |
| 28 }; | |
| 29 | |
| 30 } // namespace content | |
| 31 | |
| 32 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ | |
| OLD | NEW |