OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SESSION_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // |callback| with the result; true on success, false on failure (either | 230 // |callback| with the result; true on success, false on failure (either |
231 // session manager failed to stop an instance or session manager can not be | 231 // session manager failed to stop an instance or session manager can not be |
232 // reached). | 232 // reached). |
233 virtual void StopArcInstance(const ArcCallback& callback) = 0; | 233 virtual void StopArcInstance(const ArcCallback& callback) = 0; |
234 | 234 |
235 // Asynchronously retrieves the timestamp which ARC instance is invoked or | 235 // Asynchronously retrieves the timestamp which ARC instance is invoked or |
236 // returns false if there is no ARC instance or ARC is not available. | 236 // returns false if there is no ARC instance or ARC is not available. |
237 virtual void GetArcStartTime(const GetArcStartTimeCallback& callback) = 0; | 237 virtual void GetArcStartTime(const GetArcStartTimeCallback& callback) = 0; |
238 | 238 |
239 // Asynchronously removes all ARC user data for the user whose cryptohome is | 239 // Asynchronously removes all ARC user data for the user whose cryptohome is |
240 // located by |cryptohome_id|. | 240 // located by |cryptohome_id|. Upon completion, invokes |callback| with the |
241 virtual void RemoveArcData( | 241 // result; true on success, false on failure (either session manager failed |
242 const cryptohome::Identification& cryptohome_id) = 0; | 242 // to remove user data or session manager can not be reached). |
| 243 virtual void RemoveArcData(const cryptohome::Identification& cryptohome_id, |
| 244 const ArcCallback& callback) = 0; |
243 | 245 |
244 // Creates the instance. | 246 // Creates the instance. |
245 static SessionManagerClient* Create(DBusClientImplementationType type); | 247 static SessionManagerClient* Create(DBusClientImplementationType type); |
246 | 248 |
247 ~SessionManagerClient() override; | 249 ~SessionManagerClient() override; |
248 | 250 |
249 protected: | 251 protected: |
250 // Create() should be used instead. | 252 // Create() should be used instead. |
251 SessionManagerClient(); | 253 SessionManagerClient(); |
252 | 254 |
253 private: | 255 private: |
254 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 256 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
255 }; | 257 }; |
256 | 258 |
257 } // namespace chromeos | 259 } // namespace chromeos |
258 | 260 |
259 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 261 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
OLD | NEW |