| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 const ArcCallback& callback) = 0; | 220 const ArcCallback& callback) = 0; |
| 221 | 221 |
| 222 // Asynchronously stops the ARC instance. Upon completion, invokes | 222 // Asynchronously stops the ARC instance. Upon completion, invokes |
| 223 // |callback| with the result. | 223 // |callback| with the result. |
| 224 virtual void StopArcInstance(const ArcCallback& callback) = 0; | 224 virtual void StopArcInstance(const ArcCallback& callback) = 0; |
| 225 | 225 |
| 226 // Asynchronously retrieves the timestamp which ARC instance is invoked or | 226 // Asynchronously retrieves the timestamp which ARC instance is invoked or |
| 227 // returns false if there is no ARC instance or ARC is not available. | 227 // returns false if there is no ARC instance or ARC is not available. |
| 228 virtual void GetArcStartTime(const GetArcStartTimeCallback& callback) = 0; | 228 virtual void GetArcStartTime(const GetArcStartTimeCallback& callback) = 0; |
| 229 | 229 |
| 230 // Asynchronously removes all ARC user data. |
| 231 virtual void RemoveArcData() = 0; |
| 232 |
| 230 // Creates the instance. | 233 // Creates the instance. |
| 231 static SessionManagerClient* Create(DBusClientImplementationType type); | 234 static SessionManagerClient* Create(DBusClientImplementationType type); |
| 232 | 235 |
| 233 ~SessionManagerClient() override; | 236 ~SessionManagerClient() override; |
| 234 | 237 |
| 235 protected: | 238 protected: |
| 236 // Create() should be used instead. | 239 // Create() should be used instead. |
| 237 SessionManagerClient(); | 240 SessionManagerClient(); |
| 238 | 241 |
| 239 private: | 242 private: |
| 240 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 243 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
| 241 }; | 244 }; |
| 242 | 245 |
| 243 } // namespace chromeos | 246 } // namespace chromeos |
| 244 | 247 |
| 245 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 248 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| OLD | NEW |