forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbarcode_detection_provider_impl.h
38 lines (29 loc) · 1.33 KB
/
barcode_detection_provider_impl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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 SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_PROVIDER_IMPL_H_
#define SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_PROVIDER_IMPL_H_
#include <memory>
#include <utility>
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "services/shape_detection/public/mojom/barcodedetection_provider.mojom.h"
namespace shape_detection {
class BarcodeDetectionProviderImpl
: public shape_detection::mojom::BarcodeDetectionProvider {
public:
~BarcodeDetectionProviderImpl() override = default;
static void Create(
mojo::PendingReceiver<shape_detection::mojom::BarcodeDetectionProvider>
receiver) {
mojo::MakeSelfOwnedReceiver(
std::make_unique<BarcodeDetectionProviderImpl>(), std::move(receiver));
}
void CreateBarcodeDetection(
mojo::PendingReceiver<shape_detection::mojom::BarcodeDetection> receiver,
shape_detection::mojom::BarcodeDetectorOptionsPtr options) override;
void EnumerateSupportedFormats(
EnumerateSupportedFormatsCallback callback) override;
};
} // namespace shape_detection
#endif // SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_PROVIDER_IMPL_H_