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

Unified Diff: content/browser/media/capture/image_capture_context.h

Issue 1926873002: MediaStream Image Capture (3): Adding mojo and browser impl for dummy takePhoto(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reillyg@ comments Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/media/capture/image_capture_context.h
diff --git a/content/browser/media/capture/image_capture_context.h b/content/browser/media/capture/image_capture_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..d9b639791b4a6705b9d13cd232f0b14aa5e29c93
--- /dev/null
+++ b/content/browser/media/capture/image_capture_context.h
@@ -0,0 +1,31 @@
+// 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_CONTEXT_H_
+#define CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_CONTEXT_H_
+
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom.h"
+
+namespace content {
+
+class ImageCaptureImpl;
+
+class ImageCaptureContext {
+ public:
+ ImageCaptureContext();
+ ~ImageCaptureContext();
+
+ void CreateService(
+ mojo::InterfaceRequest<blink::mojom::ImageCapture> request);
+
+ private:
+ std::vector<std::unique_ptr<ImageCaptureImpl>> services_;
+
+ DISALLOW_COPY_AND_ASSIGN(ImageCaptureContext);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698