diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/shapedetection/face_detector.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/shapedetection/face_detector.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/modules/shapedetection/face_detector.h b/chromium/third_party/blink/renderer/modules/shapedetection/face_detector.h index 7c5bb6b07f3..bdfc333c7dc 100644 --- a/chromium/third_party/blink/renderer/modules/shapedetection/face_detector.h +++ b/chromium/third_party/blink/renderer/modules/shapedetection/face_detector.h @@ -5,13 +5,14 @@ #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_SHAPEDETECTION_FACE_DETECTOR_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_SHAPEDETECTION_FACE_DETECTOR_H_ -#include "mojo/public/cpp/bindings/remote.h" #include "services/shape_detection/public/mojom/facedetection.mojom-blink.h" #include "third_party/blink/renderer/bindings/core/v8/script_promise.h" #include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h" #include "third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.h" #include "third_party/blink/renderer/modules/modules_export.h" #include "third_party/blink/renderer/modules/shapedetection/shape_detector.h" +#include "third_party/blink/renderer/platform/mojo/heap_mojo_remote.h" +#include "third_party/blink/renderer/platform/mojo/heap_mojo_wrapper_mode.h" namespace blink { @@ -26,7 +27,7 @@ class MODULES_EXPORT FaceDetector final : public ShapeDetector { FaceDetector(ExecutionContext*, const FaceDetectorOptions*); - void Trace(blink::Visitor*) override; + void Trace(Visitor*) override; private: ~FaceDetector() override = default; @@ -37,7 +38,9 @@ class MODULES_EXPORT FaceDetector final : public ShapeDetector { Vector<shape_detection::mojom::blink::FaceDetectionResultPtr>); void OnFaceServiceConnectionError(); - mojo::Remote<shape_detection::mojom::blink::FaceDetection> face_service_; + HeapMojoRemote<shape_detection::mojom::blink::FaceDetection, + HeapMojoWrapperMode::kWithoutContextObserver> + face_service_; HeapHashSet<Member<ScriptPromiseResolver>> face_service_requests_; }; |