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

Side by Side Diff: content/browser/shapedetection/face_detection_service_dispatcher.h

Issue 2655303005: Shape detection service: Add QR detection in Mac (Closed)
Patch Set: Don't init explicitly a vector of vectors Created 3 years, 10 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
(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 #ifndef CONTENT_BROWSER_SHAPEDETECTION_FACE_DETECTION_SERVICE_DISPATCHER_H_
6 #define CONTENT_BROWSER_SHAPEDETECTION_FACE_DETECTION_SERVICE_DISPATCHER_H_
7
8 #include "content/common/content_export.h"
9 #include "content/public/common/service_manager_connection.h"
10 #include "services/service_manager/public/cpp/connector.h"
11 #include "services/shape_detection/public/interfaces/constants.mojom.h"
12 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo m.h"
13
14 namespace content {
15
16 // Because the renderer cannot launch an out-of-process service on its own, we
17 // use |FaceDetectionServiceDispatcher| to forward requests to Service Manager,
18 // which then starts Face Detection Service in a utility process.
19 namespace FaceDetectionServiceDispatcher {
20
21 static void CreateMojoService(
22 shape_detection::mojom::FaceDetectionProviderRequest request) {
23 service_manager::Connector* connector =
24 ServiceManagerConnection::GetForProcess()->GetConnector();
25 connector->BindInterface(shape_detection::mojom::kServiceName,
26 std::move(request));
27 }
28
29 } // namespace FaceDetectionServiceDispatcher
30
31 } // namespace content
32
33 #endif // CONTENT_BROWSER_SHAPEDETECTION_FACE_DETECTION_SERVICE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698