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

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

Issue 2528743002: Shape Detection: Implement FaceDetection on Mac as out-of-process service (Closed)
Patch Set: Launch shape detection service as a utility process Created 3 years, 11 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 #include "content/browser/shapedetection/face_detection_service_dispatcher.h"
6
7 #include "content/public/browser/render_frame_host.h"
8 #include "content/public/common/service_manager_connection.h"
9 #include "services/service_manager/public/cpp/connector.h"
10 #include "services/shape_detection/public/interfaces/constants.mojom.h"
11
12 namespace content {
13
14 FaceDetectionServiceDispatcher::FaceDetectionServiceDispatcher() {}
15
16 FaceDetectionServiceDispatcher::~FaceDetectionServiceDispatcher() {}
17
18 void FaceDetectionServiceDispatcher::CreateMojoService(
19 RenderFrameHost* render_frame_host,
20 shape_detection::mojom::FaceDetectionProviderRequest request) {
21 service_manager::Connector* connector =
22 ServiceManagerConnection::GetForProcess()->GetConnector();
23 connector->BindInterface(shape_detection::mojom::kServiceName,
24 std::move(request));
25 }
26
27 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698