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

Unified Diff: ash/shell_delegate.h

Issue 14295008: Add ash SessionStateDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready for review. Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ash/shell_delegate.h
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h
index 99aeb6eb637e53fe206523fa1b61090651215092..0ff5fe6879b926e9c65ff3e554a7b4ea1b4d1f4c 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -45,6 +45,7 @@ class LauncherDelegate;
class LauncherModel;
struct LauncherItem;
class RootWindowHostFactory;
+class SessionStateDelegate;
class SystemTrayDelegate;
class UserWallpaperDelegate;
@@ -98,15 +99,6 @@ class ASH_EXPORT ShellDelegate {
// The Shell owns the delegate.
virtual ~ShellDelegate() {}
- // Returns true if user has logged in.
- virtual bool IsUserLoggedIn() const = 0;
-
- // Returns true if we're logged in and browser has been started
- virtual bool IsSessionStarted() const = 0;
-
- // Returns true if we're logged in as guest.
- virtual bool IsGuestSession() const = 0;
-
// Returns true if this is the first time that the shell has been run after
// the system has booted. false is returned after the shell has been
// restarted, typically due to logging in as a guest or logging out.
@@ -118,19 +110,6 @@ class ASH_EXPORT ShellDelegate {
// Returns true if we're running in forced app mode.
virtual bool IsRunningInForcedAppMode() const = 0;
- // Returns true if a user is logged in whose session can be locked (i.e. the
- // user has a password with which to unlock the session).
- virtual bool CanLockScreen() const = 0;
-
- // Invoked when a user locks the screen.
- virtual void LockScreen() = 0;
-
- // Unlock the screen. Currently used only for tests.
- virtual void UnlockScreen() = 0;
-
- // Returns true if the screen is currently locked.
- virtual bool IsScreenLocked() const = 0;
-
// Called before processing |Shell::Init()| so that the delegate
// can perform tasks necessary before the shell is initialized.
virtual void PreInit() = 0;
@@ -226,6 +205,9 @@ class ASH_EXPORT ShellDelegate {
// Creates a caps lock delegate. Shell takes ownership of the delegate.
virtual CapsLockDelegate* CreateCapsLockDelegate() = 0;
+ // Creates a session state delegate. Shell takes ownership of the delegate.
+ virtual SessionStateDelegate* CreateSessionStateDelegate() = 0;
+
// Creates a user action client. Shell takes ownership of the object.
virtual aura::client::UserActionClient* CreateUserActionClient() = 0;

Powered by Google App Engine
This is Rietveld 408576698