| Index: services/device/fingerprint/fingerprint_impl_default.h
|
| diff --git a/services/device/fingerprint/fingerprint_impl_default.h b/services/device/fingerprint/fingerprint_impl_default.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..082b330bcdcda9e5435470c8deaf5d0817bd9b40
|
| --- /dev/null
|
| +++ b/services/device/fingerprint/fingerprint_impl_default.h
|
| @@ -0,0 +1,40 @@
|
| +// 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_DEVICE_FINGERPRINT_FINGERPRINT_IMPL_DEFAULT_H_
|
| +#define SERVICES_DEVICE_FINGERPRINT_FINGERPRINT_IMPL_DEFAULT_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "services/device/public/interfaces/fingerprint.mojom.h"
|
| +
|
| +namespace device {
|
| +
|
| +// An empty implementation of Fingerprint.
|
| +// Used on platforms where a real implementation is not available.
|
| +class FingerprintImplDefault : public mojom::Fingerprint {
|
| + public:
|
| + explicit FingerprintImplDefault();
|
| + ~FingerprintImplDefault() override;
|
| +
|
| + // mojom::Fingerprint:
|
| + void GetFingerprintsList(
|
| + const GetFingerprintsListCallback& callback) override;
|
| + void StartEnroll(const std::string& user_id,
|
| + const std::string& label) override;
|
| + void CancelCurrentEnroll() override;
|
| + void GetLabel(int32_t index, const GetLabelCallback& callback) override;
|
| + void SetLabel(const std::string& label, int32_t index) override;
|
| + void RemoveEnrollment(int32_t index) override;
|
| + void StartAuthentication() override;
|
| + void EndCurrentAuthentication() override;
|
| + void DestroyAllEnrollments() override;
|
| + void AddBiodObserver(mojom::BiodObserverPtr observer) override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(FingerprintImplDefault);
|
| +};
|
| +
|
| +} // namespace device
|
| +
|
| +#endif // SERVICES_DEVICE_FINGERPRINT_FINGERPRINT_IMPL_DEFAULT_H_
|
|
|