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