| 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
|
|
|