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

Side by Side Diff: services/shape_detection/face_detection_provider_impl.h

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « services/shape_detection/barcode_detection_impl_mac.mm ('k') | services/shape_detection/text_detection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698