| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // Running ARC requires some amount of disk space. LOW_FREE_DISK_SPACE will | 286 // Running ARC requires some amount of disk space. LOW_FREE_DISK_SPACE will |
| 287 // be returned when there is not enough free disk space for ARC. | 287 // be returned when there is not enough free disk space for ARC. |
| 288 // UNKNOWN_ERROR is returned for any other errors. | 288 // UNKNOWN_ERROR is returned for any other errors. |
| 289 enum class StartArcInstanceResult { | 289 enum class StartArcInstanceResult { |
| 290 SUCCESS, | 290 SUCCESS, |
| 291 UNKNOWN_ERROR, | 291 UNKNOWN_ERROR, |
| 292 LOW_FREE_DISK_SPACE, | 292 LOW_FREE_DISK_SPACE, |
| 293 }; | 293 }; |
| 294 using StartArcInstanceCallback = base::Callback<void(StartArcInstanceResult)>; | 294 using StartArcInstanceCallback = base::Callback<void(StartArcInstanceResult)>; |
| 295 virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id, | 295 virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id, |
| 296 bool disable_boot_completed_broadcast, | 296 bool skip_boot_completed_broadcast, |
| 297 bool enable_vendor_privileged, | 297 bool scan_vendor_priv_app, |
| 298 const StartArcInstanceCallback& callback) = 0; | 298 const StartArcInstanceCallback& callback) = 0; |
| 299 | 299 |
| 300 // Asynchronously stops the ARC instance. Upon completion, invokes | 300 // Asynchronously stops the ARC instance. Upon completion, invokes |
| 301 // |callback| with the result; true on success, false on failure (either | 301 // |callback| with the result; true on success, false on failure (either |
| 302 // session manager failed to stop an instance or session manager can not be | 302 // session manager failed to stop an instance or session manager can not be |
| 303 // reached). | 303 // reached). |
| 304 virtual void StopArcInstance(const ArcCallback& callback) = 0; | 304 virtual void StopArcInstance(const ArcCallback& callback) = 0; |
| 305 | 305 |
| 306 // Adjusts the amount of CPU the ARC instance is allowed to use. When | 306 // Adjusts the amount of CPU the ARC instance is allowed to use. When |
| 307 // |restriction_state| is CONTAINER_CPU_RESTRICTION_FOREGROUND the limit is | 307 // |restriction_state| is CONTAINER_CPU_RESTRICTION_FOREGROUND the limit is |
| (...skipping 30 matching lines...) Expand all Loading... |
| 338 // Create() should be used instead. | 338 // Create() should be used instead. |
| 339 SessionManagerClient(); | 339 SessionManagerClient(); |
| 340 | 340 |
| 341 private: | 341 private: |
| 342 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 342 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
| 343 }; | 343 }; |
| 344 | 344 |
| 345 } // namespace chromeos | 345 } // namespace chromeos |
| 346 | 346 |
| 347 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 347 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| OLD | NEW |