face_detection_provider_impl.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. #ifndef SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_
  5. #define SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_
  6. #include "mojo/public/cpp/bindings/pending_receiver.h"
  7. #include "mojo/public/cpp/bindings/self_owned_receiver.h"
  8. #include "services/shape_detection/public/mojom/facedetection_provider.mojom.h"
  9. namespace shape_detection {
  10. class FaceDetectionProviderImpl
  11. : public shape_detection::mojom::FaceDetectionProvider {
  12. public:
  13. ~FaceDetectionProviderImpl() override = default;
  14. static void Create(
  15. mojo::PendingReceiver<shape_detection::mojom::FaceDetectionProvider>
  16. receiver) {
  17. mojo::MakeSelfOwnedReceiver(std::make_unique<FaceDetectionProviderImpl>(),
  18. std::move(receiver));
  19. }
  20. void CreateFaceDetection(
  21. mojo::PendingReceiver<shape_detection::mojom::FaceDetection> receiver,
  22. shape_detection::mojom::FaceDetectorOptionsPtr options) override;
  23. };
  24. } // namespace shape_detection
  25. #endif // SERVICES_SHAPE_DETECTION_FACE_DETECTION_PROVIDER_IMPL_H_