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

Side by Side Diff: content/browser/media/capture/image_capture_impl.h

Issue 1952463002: Media Stream Image Capture (4): wire takePhoto and implement in FakeVCDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgotten "!" and rebase Created 4 years, 7 months 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
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 "mojo/public/cpp/bindings/interface_request.h" 8 #include "mojo/public/cpp/bindings/interface_request.h"
9 #include "mojo/public/cpp/bindings/string.h" 9 #include "mojo/public/cpp/bindings/string.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h" 10 #include "mojo/public/cpp/bindings/strong_binding.h"
11 #include "third_party/WebKit/public/platform/modules/imagecapture/image_capture. mojom.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 MediaStreamManager;
tommi (sloooow) - chröme 2016/05/09 11:17:33 doesn't look like this is needed
mcasas 2016/05/09 16:48:40 Done.
16
15 class ImageCaptureImpl : public blink::mojom::ImageCapture { 17 class ImageCaptureImpl : public blink::mojom::ImageCapture {
16 public: 18 public:
17 static void Create( 19 static void Create(
18 mojo::InterfaceRequest<blink::mojom::ImageCapture> request); 20 mojo::InterfaceRequest<blink::mojom::ImageCapture> request);
19 ~ImageCaptureImpl() override; 21 ~ImageCaptureImpl() override;
20 22
21 void TakePhoto(const mojo::String& source_id, 23 void TakePhoto(const mojo::String& source_id,
22 const TakePhotoCallback& callback) override; 24 const TakePhotoCallback& callback) override;
23 25
24 private: 26 private:
25 explicit ImageCaptureImpl( 27 explicit ImageCaptureImpl(
26 mojo::InterfaceRequest<blink::mojom::ImageCapture> request); 28 mojo::InterfaceRequest<blink::mojom::ImageCapture> request);
27 29
28 mojo::StrongBinding<blink::mojom::ImageCapture> binding_; 30 mojo::StrongBinding<blink::mojom::ImageCapture> binding_;
29 31
30 DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl); 32 DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl);
31 }; 33 };
32 34
33 } // namespace content 35 } // namespace content
34 36
35 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_ 37 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698