| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // BiodClient: | 33 // BiodClient: |
| 34 void Init(dbus::Bus* bus) override; | 34 void Init(dbus::Bus* bus) override; |
| 35 void AddObserver(Observer* observer) override; | 35 void AddObserver(Observer* observer) override; |
| 36 void RemoveObserver(Observer* observer) override; | 36 void RemoveObserver(Observer* observer) override; |
| 37 bool HasObserver(const Observer* observer) const override; | 37 bool HasObserver(const Observer* observer) const override; |
| 38 void StartEnrollSession(const std::string& user_id, | 38 void StartEnrollSession(const std::string& user_id, |
| 39 const std::string& label, | 39 const std::string& label, |
| 40 const ObjectPathCallback& callback) override; | 40 const ObjectPathCallback& callback) override; |
| 41 void GetRecordsForUser(const std::string& user_id, | 41 void GetRecordsForUser(const std::string& user_id, |
| 42 const UserRecordsCallback& callback) override; | 42 const UserRecordsCallback& callback) override; |
| 43 void DestroyAllRecords() override; | 43 void DestroyAllRecords(const VoidDBusMethodCallback& callback) override; |
| 44 void StartAuthSession(const ObjectPathCallback& callback) override; | 44 void StartAuthSession(const ObjectPathCallback& callback) override; |
| 45 void RequestType(const BiometricTypeCallback& callback) override; | 45 void RequestType(const BiometricTypeCallback& callback) override; |
| 46 void CancelEnrollSession( | 46 void CancelEnrollSession(const dbus::ObjectPath& enroll_session_path, |
| 47 const dbus::ObjectPath& enroll_session_path) override; | 47 const VoidDBusMethodCallback& callback) override; |
| 48 void EndAuthSession(const dbus::ObjectPath& auth_session_path) override; | 48 void EndAuthSession(const dbus::ObjectPath& auth_session_path, |
| 49 const VoidDBusMethodCallback& callback) override; |
| 49 void SetRecordLabel(const dbus::ObjectPath& record_path, | 50 void SetRecordLabel(const dbus::ObjectPath& record_path, |
| 50 const std::string& label) override; | 51 const std::string& label, |
| 51 void RemoveRecord(const dbus::ObjectPath& record_path) override; | 52 const VoidDBusMethodCallback& callback) override; |
| 53 void RemoveRecord(const dbus::ObjectPath& record_path, |
| 54 const VoidDBusMethodCallback& callback) override; |
| 52 void RequestRecordLabel(const dbus::ObjectPath& record_path, | 55 void RequestRecordLabel(const dbus::ObjectPath& record_path, |
| 53 const LabelCallback& callback) override; | 56 const LabelCallback& callback) override; |
| 54 | 57 |
| 55 private: | 58 private: |
| 56 base::ObserverList<Observer> observers_; | 59 base::ObserverList<Observer> observers_; |
| 57 | 60 |
| 58 DISALLOW_COPY_AND_ASSIGN(FakeBiodClient); | 61 DISALLOW_COPY_AND_ASSIGN(FakeBiodClient); |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 } // namespace chromeos | 64 } // namespace chromeos |
| 62 | 65 |
| 63 #endif // CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ | 66 #endif // CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ |
| OLD | NEW |