| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/shapedetection/face_detection_service_dispatcher.h" |
| 6 |
| 7 #include "content/public/common/service_manager_connection.h" |
| 8 #include "services/service_manager/public/cpp/connector.h" |
| 9 #include "services/shape_detection/public/interfaces/constants.mojom.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 FaceDetectionServiceDispatcher::FaceDetectionServiceDispatcher() {} |
| 14 |
| 15 FaceDetectionServiceDispatcher::~FaceDetectionServiceDispatcher() {} |
| 16 |
| 17 void FaceDetectionServiceDispatcher::CreateMojoService( |
| 18 shape_detection::mojom::FaceDetectionProviderRequest request) { |
| 19 service_manager::Connector* connector = |
| 20 ServiceManagerConnection::GetForProcess()->GetConnector(); |
| 21 connector->BindInterface(shape_detection::mojom::kServiceName, |
| 22 std::move(request)); |
| 23 } |
| 24 |
| 25 } // namespace content |
| OLD | NEW |