Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: services/device/fingerprint/fingerprint_impl_default.h

Issue 2664353002: Host fingerprint mojo service within the device service. (Closed)
Patch Set: incorporate comments and rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
Rahul Chaturvedi 2017/02/06 21:31:57 Is this class strictly necessary? Can we instead j
xiaoyinh(OOO Sep 11-29) 2017/02/22 00:04:50 Done.
+ 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_

Powered by Google App Engine
This is Rietveld 408576698