Chromium Code Reviews| 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; | |
|
stevenjb
2017/03/22 20:57:53
nit: Maybe EndAuthSession? 'End' is kind of vague.
sammiequon
2017/03/23 18:30:37
Done.
| |
| 27 | |
| 28 // Creates the instance. | |
| 29 static BiodAuthSessionClient* Create(DBusClientImplementationType type); | |
| 30 | |
| 31 protected: | |
| 32 // Create() should be used instead. | |
| 33 BiodAuthSessionClient(); | |
| 34 | |
| 35 private: | |
| 36 DISALLOW_COPY_AND_ASSIGN(BiodAuthSessionClient); | |
| 37 }; | |
| 38 | |
| 39 } // namespace chromeos | |
| 40 | |
| 41 #endif // CHROMEOS_DBUS_BIOD_AUTH_SESSION_CLIENT_H_ | |
| OLD | NEW |