Chromium Code Reviews| Index: content/browser/shapedetection/face_detection_service_dispatcher.h |
| diff --git a/content/browser/shapedetection/face_detection_service_dispatcher.h b/content/browser/shapedetection/face_detection_service_dispatcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7b5090d0926f710902060e9702f854c1efaee9f6 |
| --- /dev/null |
| +++ b/content/browser/shapedetection/face_detection_service_dispatcher.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_SHAPEDETECTION_FACE_DETECTION_SERVICE_DISPATCHER_H_ |
| +#define CONTENT_BROWSER_SHAPEDETECTION_FACE_DETECTION_SERVICE_DISPATCHER_H_ |
| + |
| +#include "content/common/content_export.h" |
| +#include "services/shape_detection/public/interfaces/facedetection_provider.mojom.h" |
| + |
| +namespace content { |
| + |
| +// Because the renderer cannot launch an out-of-process service on its own, we |
| +// use |FaceDetectionServiceDispatcher| to forward requests to Service Manager, |
| +// which then starts Face Detection Service in a utility process. |
| +class CONTENT_EXPORT FaceDetectionServiceDispatcher { |
|
jochen (gone - plz use gerrit)
2017/01/24 12:31:59
nit. use namespace FaceDetectionServiceDispatcher
|
| + public: |
| + FaceDetectionServiceDispatcher(); |
| + ~FaceDetectionServiceDispatcher(); |
| + |
| + static void CreateMojoService( |
| + shape_detection::mojom::FaceDetectionProviderRequest request); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_SHAPEDETECTION_FACE_DETECTION_SERVICE_DISPATCHER_H_ |