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

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

Issue 2693013006: arc: Add cryptohome_id to EmitArcBooted. (Closed)
Patch Set: Address Luis's comments. Created 3 years, 10 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // adjusted so ARC can use all the system's CPU if needed. When it is 263 // adjusted so ARC can use all the system's CPU if needed. When it is
264 // CONTAINER_CPU_RESTRICTION_BACKGROUND, ARC can only use tightly restricted 264 // CONTAINER_CPU_RESTRICTION_BACKGROUND, ARC can only use tightly restricted
265 // CPU resources. The ARC instance is started in a state that is more 265 // CPU resources. The ARC instance is started in a state that is more
266 // restricted than CONTAINER_CPU_RESTRICTION_BACKGROUND. When ARC is not 266 // restricted than CONTAINER_CPU_RESTRICTION_BACKGROUND. When ARC is not
267 // supported, the function asynchronously runs the |callback| with false. 267 // supported, the function asynchronously runs the |callback| with false.
268 virtual void SetArcCpuRestriction( 268 virtual void SetArcCpuRestriction(
269 login_manager::ContainerCpuRestrictionState restriction_state, 269 login_manager::ContainerCpuRestrictionState restriction_state,
270 const ArcCallback& callback) = 0; 270 const ArcCallback& callback) = 0;
271 271
272 // Emits the "arc-booted" upstart signal. 272 // Emits the "arc-booted" upstart signal.
273 virtual void EmitArcBooted() = 0; 273 virtual void EmitArcBooted(const cryptohome::Identification& cryptohome_id,
274 const ArcCallback& callback) = 0;
274 275
275 // Asynchronously retrieves the timestamp which ARC instance is invoked or 276 // Asynchronously retrieves the timestamp which ARC instance is invoked or
276 // returns false if there is no ARC instance or ARC is not available. 277 // returns false if there is no ARC instance or ARC is not available.
277 virtual void GetArcStartTime(const GetArcStartTimeCallback& callback) = 0; 278 virtual void GetArcStartTime(const GetArcStartTimeCallback& callback) = 0;
278 279
279 // Asynchronously removes all ARC user data for the user whose cryptohome is 280 // Asynchronously removes all ARC user data for the user whose cryptohome is
280 // located by |cryptohome_id|. Upon completion, invokes |callback| with the 281 // located by |cryptohome_id|. Upon completion, invokes |callback| with the
281 // result; true on success, false on failure (either session manager failed 282 // result; true on success, false on failure (either session manager failed
282 // to remove user data or session manager can not be reached). 283 // to remove user data or session manager can not be reached).
283 virtual void RemoveArcData(const cryptohome::Identification& cryptohome_id, 284 virtual void RemoveArcData(const cryptohome::Identification& cryptohome_id,
284 const ArcCallback& callback) = 0; 285 const ArcCallback& callback) = 0;
285 286
286 // Creates the instance. 287 // Creates the instance.
287 static SessionManagerClient* Create(DBusClientImplementationType type); 288 static SessionManagerClient* Create(DBusClientImplementationType type);
288 289
289 ~SessionManagerClient() override; 290 ~SessionManagerClient() override;
290 291
291 protected: 292 protected:
292 // Create() should be used instead. 293 // Create() should be used instead.
293 SessionManagerClient(); 294 SessionManagerClient();
294 295
295 private: 296 private:
296 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); 297 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient);
297 }; 298 };
298 299
299 } // namespace chromeos 300 } // namespace chromeos
300 301
301 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 302 #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