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_AUTH_SESSION_CLIENT_H_ | |
6 #define CHROMEOS_DBUS_BIOD_BIOD_AUTH_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 // BiodAuthSessionClient is used to communicate with a biod auth sesion | |
21 // dbus interface. | |
22 class CHROMEOS_EXPORT BiodAuthSessionClient : public DBusClient { | |
Daniel Erat
2017/04/03 18:02:10
i don't think it makes sense to add classes for th
| |
23 public: | |
24 ~BiodAuthSessionClient() override; | |
25 | |
26 // Ends the auth session at |auth_session_path|. | |
27 virtual void End(const dbus::ObjectPath& auth_session_path) = 0; | |
28 | |
29 // Creates the instance. | |
30 static BiodAuthSessionClient* Create(DBusClientImplementationType type); | |
31 | |
32 protected: | |
33 // Create() should be used instead. | |
34 BiodAuthSessionClient(); | |
35 | |
36 private: | |
37 DISALLOW_COPY_AND_ASSIGN(BiodAuthSessionClient); | |
38 }; | |
39 | |
40 } // namespace chromeos | |
41 | |
42 #endif // CHROMEOS_DBUS_BIOD_BIOD_AUTH_SESSION_CLIENT_H_ | |
OLD | NEW |