Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Side by Side Diff: chromeos/dbus/session_manager_client.h

Issue 2869163002: Refactor dbus SessionManagerInterface.StartArcInterface (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/BUILD.gn ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chromeos/BUILD.gn ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698