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

Unified Diff: services/shape_detection/face_detection_provider_impl.h

Issue 2528743002: Shape Detection: Implement FaceDetection on Mac as out-of-process service (Closed)
Patch Set: Rebase Created 3 years, 11 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: services/shape_detection/face_detection_provider_impl.h
diff --git a/services/shape_detection/face_detection_provider_impl.h b/services/shape_detection/face_detection_provider_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..a2b869092ccb4eab41b05252bbb9383b4d245dd5
--- /dev/null
+++ b/services/shape_detection/face_detection_provider_impl.h
@@ -0,0 +1,31 @@
+// Copyright 2017 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 SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_
+#define SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_
+
+#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "services/shape_detection/public/interfaces/facedetection_provider.mojom.h"
+
+namespace shape_detection {
+
+class FaceDetectionProviderImpl
+ : public shape_detection::mojom::FaceDetectionProvider {
+ public:
+ ~FaceDetectionProviderImpl() override = default;
+
+ static void Create(
+ shape_detection::mojom::FaceDetectionProviderRequest request) {
+ mojo::MakeStrongBinding(base::MakeUnique<FaceDetectionProviderImpl>(),
+ std::move(request));
+ }
+
+ void CreateFaceDetection(
+ shape_detection::mojom::FaceDetectionRequest request,
+ shape_detection::mojom::FaceDetectorOptionsPtr options) override;
+};
+
+} // namespace shape_detection
+
+#endif // SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_
« no previous file with comments | « services/shape_detection/face_detection_impl_mac.mm ('k') | services/shape_detection/face_detection_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698