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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 UNKNOWN_ERROR, | 294 UNKNOWN_ERROR, |
295 LOW_FREE_DISK_SPACE, | 295 LOW_FREE_DISK_SPACE, |
296 }; | 296 }; |
297 // In case of success, |container_instance_id| will be passed as its second | 297 // In case of success, |container_instance_id| will be passed as its second |
298 // param. The ID is passed to ArcInstanceStopped() to identify which instance | 298 // param. The ID is passed to ArcInstanceStopped() to identify which instance |
299 // is stopped. | 299 // is stopped. |
300 using StartArcInstanceCallback = | 300 using StartArcInstanceCallback = |
301 base::Callback<void(StartArcInstanceResult result, | 301 base::Callback<void(StartArcInstanceResult result, |
302 const std::string& container_instance_id)>; | 302 const std::string& container_instance_id)>; |
303 virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id, | 303 virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id, |
304 bool disable_boot_completed_broadcast, | 304 bool skip_boot_completed_broadcast, |
305 bool enable_vendor_privileged, | 305 bool scan_vendor_priv_app, |
306 const StartArcInstanceCallback& callback) = 0; | 306 const StartArcInstanceCallback& callback) = 0; |
307 | 307 |
308 // Asynchronously stops the ARC instance. Upon completion, invokes | 308 // Asynchronously stops the ARC instance. Upon completion, invokes |
309 // |callback| with the result; true on success, false on failure (either | 309 // |callback| with the result; true on success, false on failure (either |
310 // session manager failed to stop an instance or session manager can not be | 310 // session manager failed to stop an instance or session manager can not be |
311 // reached). | 311 // reached). |
312 virtual void StopArcInstance(const ArcCallback& callback) = 0; | 312 virtual void StopArcInstance(const ArcCallback& callback) = 0; |
313 | 313 |
314 // Adjusts the amount of CPU the ARC instance is allowed to use. When | 314 // Adjusts the amount of CPU the ARC instance is allowed to use. When |
315 // |restriction_state| is CONTAINER_CPU_RESTRICTION_FOREGROUND the limit is | 315 // |restriction_state| is CONTAINER_CPU_RESTRICTION_FOREGROUND the limit is |
(...skipping 30 matching lines...) Expand all Loading... |
346 // Create() should be used instead. | 346 // Create() should be used instead. |
347 SessionManagerClient(); | 347 SessionManagerClient(); |
348 | 348 |
349 private: | 349 private: |
350 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 350 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
351 }; | 351 }; |
352 | 352 |
353 } // namespace chromeos | 353 } // namespace chromeos |
354 | 354 |
355 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 355 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
OLD | NEW |