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

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

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 #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 "services/shape_detection/public/interfaces/facedetection_provider.mojo m.h"
10
11 namespace content {
12
13 class RenderFrameHost;
14
15 // Because the renderer cannot launch an out-of-process service on its own, we
16 // use |FaceDetectionServiceDispatcher| to forward requests to Service Manager,
17 // which then starts Face Detection Service in a utility process.
18 class CONTENT_EXPORT FaceDetectionServiceDispatcher {
19 public:
20 FaceDetectionServiceDispatcher();
21 ~FaceDetectionServiceDispatcher();
22
23 static void CreateMojoService(
24 RenderFrameHost* render_frame_host,
25 shape_detection::mojom::FaceDetectionProviderRequest request);
26 };
27
28 } // namespace content
29
30 #endif // CONTENT_BROWSER_SHAPEDETECTION_FACE_DETECTION_SERVICE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698