OLD | NEW |
(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 SERVICES_DEVICE_FINGERPRINT_FINGERPRINT_IMPL_DEFAULT_H_ |
| 6 #define SERVICES_DEVICE_FINGERPRINT_FINGERPRINT_IMPL_DEFAULT_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "services/device/public/interfaces/fingerprint.mojom.h" |
| 10 |
| 11 namespace device { |
| 12 |
| 13 // An empty implementation of Fingerprint. |
| 14 // Used on platforms where a real implementation is not available. |
| 15 class FingerprintImplDefault : public mojom::Fingerprint { |
| 16 public: |
| 17 explicit FingerprintImplDefault(); |
| 18 ~FingerprintImplDefault() override; |
| 19 |
| 20 // mojom::Fingerprint: |
| 21 void GetFingerprintsList( |
| 22 const GetFingerprintsListCallback& callback) override; |
| 23 void StartEnroll(const std::string& user_id, |
| 24 const std::string& label) override; |
| 25 void CancelCurrentEnroll() override; |
| 26 void GetLabel(int32_t index, const GetLabelCallback& callback) override; |
| 27 void SetLabel(const std::string& label, int32_t index) override; |
| 28 void RemoveEnrollment(int32_t index) override; |
| 29 void StartAuthentication() override; |
| 30 void EndCurrentAuthentication() override; |
| 31 void DestroyAllEnrollments() override; |
| 32 void AddBiodObserver(mojom::BiodObserverPtr observer) override; |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(FingerprintImplDefault); |
| 36 }; |
| 37 |
| 38 } // namespace device |
| 39 |
| 40 #endif // SERVICES_DEVICE_FINGERPRINT_FINGERPRINT_IMPL_DEFAULT_H_ |
OLD | NEW |