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

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

Issue 2649133003: Remove PrioritizeArcInstance() from SessionManagerClient (Closed)
Patch Set: Created 3 years, 11 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/dbus/mock_session_manager_client.h ('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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id, 247 virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id,
248 bool disable_boot_completed_broadcast, 248 bool disable_boot_completed_broadcast,
249 const StartArcInstanceCallback& callback) = 0; 249 const StartArcInstanceCallback& callback) = 0;
250 250
251 // Asynchronously stops the ARC instance. Upon completion, invokes 251 // Asynchronously stops the ARC instance. Upon completion, invokes
252 // |callback| with the result; true on success, false on failure (either 252 // |callback| with the result; true on success, false on failure (either
253 // session manager failed to stop an instance or session manager can not be 253 // session manager failed to stop an instance or session manager can not be
254 // reached). 254 // reached).
255 virtual void StopArcInstance(const ArcCallback& callback) = 0; 255 virtual void StopArcInstance(const ArcCallback& callback) = 0;
256 256
257 // Deprecated. Use SetArcCpuRestriction() instead.
258 // TODO(yusukes): Remove the interface.
259 // Prioritizes the ARC instance by removing cgroups restrictions that
260 // session_manager applies to the instance by default. Upon completion,
261 // invokes |callback| with the result; true on success, false on failure.
262 // All calls after the first one will have no effect.
263 virtual void PrioritizeArcInstance(const ArcCallback& callback) = 0;
264
265 // Adjusts the amount of CPU the ARC instance is allowed to use. When 257 // Adjusts the amount of CPU the ARC instance is allowed to use. When
266 // |restriction_state| is CONTAINER_CPU_RESTRICTION_FOREGROUND the limit is 258 // |restriction_state| is CONTAINER_CPU_RESTRICTION_FOREGROUND the limit is
267 // adjusted so ARC can use all the system's CPU if needed. When it is 259 // adjusted so ARC can use all the system's CPU if needed. When it is
268 // CONTAINER_CPU_RESTRICTION_BACKGROUND, ARC can only use tightly restricted 260 // CONTAINER_CPU_RESTRICTION_BACKGROUND, ARC can only use tightly restricted
269 // CPU resources. The ARC instance is started in a state that is more 261 // CPU resources. The ARC instance is started in a state that is more
270 // restricted than CONTAINER_CPU_RESTRICTION_BACKGROUND. When ARC is not 262 // restricted than CONTAINER_CPU_RESTRICTION_BACKGROUND. When ARC is not
271 // supported, the function asynchronously runs the |callback| with false. 263 // supported, the function asynchronously runs the |callback| with false.
272 virtual void SetArcCpuRestriction( 264 virtual void SetArcCpuRestriction(
273 login_manager::ContainerCpuRestrictionState restriction_state, 265 login_manager::ContainerCpuRestrictionState restriction_state,
274 const ArcCallback& callback) = 0; 266 const ArcCallback& callback) = 0;
(...skipping 21 matching lines...) Expand all
296 // Create() should be used instead. 288 // Create() should be used instead.
297 SessionManagerClient(); 289 SessionManagerClient();
298 290
299 private: 291 private:
300 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); 292 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient);
301 }; 293 };
302 294
303 } // namespace chromeos 295 } // namespace chromeos
304 296
305 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 297 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698