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

Unified Diff: chromeos/dbus/biod/biod_client.h

Issue 2581403002: cros: Remaining interfaces for DBUS biometrics client. (Closed)
Patch Set: Rebased. Created 3 years, 9 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
« no previous file with comments | « no previous file | chromeos/dbus/biod/biod_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/biod/biod_client.h
diff --git a/chromeos/dbus/biod/biod_client.h b/chromeos/dbus/biod/biod_client.h
index 01a46fa84ad3ccf52cfed1da6eb7e5d19953d978..c866e6269607655ade19f8301df42df4ee716cb5 100644
--- a/chromeos/dbus/biod/biod_client.h
+++ b/chromeos/dbus/biod/biod_client.h
@@ -77,6 +77,9 @@ class CHROMEOS_EXPORT BiodClient : public DBusClient {
// one argument which states the type of biometric.
using BiometricTypeCallback = base::Callback<void(biod::BiometricType)>;
+ // LabelCallback is for the RequestRecordLabel method.
+ using LabelCallback = base::Callback<void(const std::string& label)>;
+
// Starts the biometric enroll session. |callback| is called with the object
// path of the current enroll session after the method succeeds. |user_id|
// contains the unique identifier for the owner of the biometric. |label| is
@@ -103,6 +106,26 @@ class CHROMEOS_EXPORT BiodClient : public DBusClient {
// type after the method succeeds.
virtual void RequestType(const BiometricTypeCallback& callback) = 0;
+ // Cancels the enroll session at |enroll_session_path|.
+ virtual void CancelEnrollSession(
+ const dbus::ObjectPath& enroll_session_path) = 0;
+
+ // Ends the auth session at |auth_session_path|.
+ virtual void EndAuthSession(const dbus::ObjectPath& auth_session_path) = 0;
+
+ // Changes the label of the record at |record_path| to |label|.
+ virtual void SetRecordLabel(const dbus::ObjectPath& record_path,
+ const std::string& label) = 0;
+
+ // Removes the record at |record_path|. This record will no longer be able to
+ // used for authentication.
+ virtual void RemoveRecord(const dbus::ObjectPath& record_path) = 0;
+
+ // Requests the label of the record at |record_path|. |callback| is called
+ // with the label of the record.
+ virtual void RequestRecordLabel(const dbus::ObjectPath& record_path,
+ const LabelCallback& callback) = 0;
+
// Creates the instance.
static BiodClient* Create(DBusClientImplementationType type);
« no previous file with comments | « no previous file | chromeos/dbus/biod/biod_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698