OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_ | 5 #ifndef SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_ |
6 #define SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_ | 6 #define SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_ |
7 | 7 |
8 #include "mojo/public/cpp/bindings/strong_binding.h" | 8 #include "mojo/public/cpp/bindings/strong_binding.h" |
9 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo
m.h" | 9 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo
m.h" |
10 | 10 |
| 11 namespace service_manager { |
| 12 struct BindSourceInfo; |
| 13 } |
| 14 |
11 namespace shape_detection { | 15 namespace shape_detection { |
12 | 16 |
13 class FaceDetectionProviderImpl | 17 class FaceDetectionProviderImpl |
14 : public shape_detection::mojom::FaceDetectionProvider { | 18 : public shape_detection::mojom::FaceDetectionProvider { |
15 public: | 19 public: |
16 ~FaceDetectionProviderImpl() override = default; | 20 ~FaceDetectionProviderImpl() override = default; |
17 | 21 |
18 static void Create( | 22 static void Create( |
| 23 const service_manager::BindSourceInfo& source_info, |
19 shape_detection::mojom::FaceDetectionProviderRequest request) { | 24 shape_detection::mojom::FaceDetectionProviderRequest request) { |
20 mojo::MakeStrongBinding(base::MakeUnique<FaceDetectionProviderImpl>(), | 25 mojo::MakeStrongBinding(base::MakeUnique<FaceDetectionProviderImpl>(), |
21 std::move(request)); | 26 std::move(request)); |
22 } | 27 } |
23 | 28 |
24 void CreateFaceDetection( | 29 void CreateFaceDetection( |
25 shape_detection::mojom::FaceDetectionRequest request, | 30 shape_detection::mojom::FaceDetectionRequest request, |
26 shape_detection::mojom::FaceDetectorOptionsPtr options) override; | 31 shape_detection::mojom::FaceDetectorOptionsPtr options) override; |
27 }; | 32 }; |
28 | 33 |
29 } // namespace shape_detection | 34 } // namespace shape_detection |
30 | 35 |
31 #endif // SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_ | 36 #endif // SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_ |
OLD | NEW |