| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // Asynchronously stops the ARC instance. Upon completion, invokes | 224 // Asynchronously stops the ARC instance. Upon completion, invokes |
| 225 // |callback| with the result; true on success, false on failure (either | 225 // |callback| with the result; true on success, false on failure (either |
| 226 // session manager failed to stop an instance or session manager can not be | 226 // session manager failed to stop an instance or session manager can not be |
| 227 // reached). | 227 // reached). |
| 228 virtual void StopArcInstance(const ArcCallback& callback) = 0; | 228 virtual void StopArcInstance(const ArcCallback& callback) = 0; |
| 229 | 229 |
| 230 // Asynchronously retrieves the timestamp which ARC instance is invoked or | 230 // Asynchronously retrieves the timestamp which ARC instance is invoked or |
| 231 // returns false if there is no ARC instance or ARC is not available. | 231 // returns false if there is no ARC instance or ARC is not available. |
| 232 virtual void GetArcStartTime(const GetArcStartTimeCallback& callback) = 0; | 232 virtual void GetArcStartTime(const GetArcStartTimeCallback& callback) = 0; |
| 233 | 233 |
| 234 // Asynchronously removes all ARC user data for the user whose cryptohome is |
| 235 // located by |cryptohome_id|. |
| 236 virtual void RemoveArcData( |
| 237 const cryptohome::Identification& cryptohome_id) = 0; |
| 238 |
| 234 // Creates the instance. | 239 // Creates the instance. |
| 235 static SessionManagerClient* Create(DBusClientImplementationType type); | 240 static SessionManagerClient* Create(DBusClientImplementationType type); |
| 236 | 241 |
| 237 ~SessionManagerClient() override; | 242 ~SessionManagerClient() override; |
| 238 | 243 |
| 239 protected: | 244 protected: |
| 240 // Create() should be used instead. | 245 // Create() should be used instead. |
| 241 SessionManagerClient(); | 246 SessionManagerClient(); |
| 242 | 247 |
| 243 private: | 248 private: |
| 244 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 249 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
| 245 }; | 250 }; |
| 246 | 251 |
| 247 } // namespace chromeos | 252 } // namespace chromeos |
| 248 | 253 |
| 249 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 254 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| OLD | NEW |