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 CHROMEOS_DBUS_BIOD_AUTH_SESSION_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_BIOD_AUTH_SESSION_CLIENT_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
| 12 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/dbus/dbus_client.h" |
| 14 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 15 #include "chromeos/dbus/dbus_method_call_status.h" |
| 16 |
| 17 namespace chromeos { |
| 18 |
| 19 // BiodAuthenticationClient is used to communicate with the biod authentication |
| 20 // dbus interface. |
| 21 class CHROMEOS_EXPORT BiodAuthSessionClient : public DBusClient { |
| 22 public: |
| 23 ~BiodAuthSessionClient() override; |
| 24 |
| 25 // Ends the auth session at |auth_session_path|. |
| 26 virtual void End(const dbus::ObjectPath& auth_session_path) = 0; |
| 27 |
| 28 // Creates the instance. |
| 29 static BiodAuthSessionClient* Create(DBusClientImplementationType type); |
| 30 |
| 31 protected: |
| 32 friend class BiodBiometricsManagerClientTest; |
| 33 |
| 34 // Create() should be used instead. |
| 35 BiodAuthSessionClient(); |
| 36 |
| 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(BiodAuthSessionClient); |
| 39 }; |
| 40 |
| 41 } // namespace chromeos |
| 42 |
| 43 #endif // CHROMEOS_DBUS_BIOD_AUTH_SESSION_CLIENT_H_ |
OLD | NEW |