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

Unified Diff: content/browser/shapedetection/face_detection_service_dispatcher.cc

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: content/browser/shapedetection/face_detection_service_dispatcher.cc
diff --git a/content/browser/shapedetection/face_detection_service_dispatcher.cc b/content/browser/shapedetection/face_detection_service_dispatcher.cc
new file mode 100644
index 0000000000000000000000000000000000000000..833e2da8196098ed6e0ed268f2b2357b16581cb5
--- /dev/null
+++ b/content/browser/shapedetection/face_detection_service_dispatcher.cc
@@ -0,0 +1,25 @@
+// 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.
+
+#include "content/browser/shapedetection/face_detection_service_dispatcher.h"
+
+#include "content/public/common/service_manager_connection.h"
+#include "services/service_manager/public/cpp/connector.h"
+#include "services/shape_detection/public/interfaces/constants.mojom.h"
+
+namespace content {
+
+FaceDetectionServiceDispatcher::FaceDetectionServiceDispatcher() {}
+
+FaceDetectionServiceDispatcher::~FaceDetectionServiceDispatcher() {}
+
+void FaceDetectionServiceDispatcher::CreateMojoService(
+ shape_detection::mojom::FaceDetectionProviderRequest request) {
+ service_manager::Connector* connector =
+ ServiceManagerConnection::GetForProcess()->GetConnector();
+ connector->BindInterface(shape_detection::mojom::kServiceName,
+ std::move(request));
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698