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

Unified Diff: components/session_manager/core/session_manager.h

Issue 2619083002: Clean up SessionStateDelegate in chrome (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: components/session_manager/core/session_manager.h
diff --git a/components/session_manager/core/session_manager.h b/components/session_manager/core/session_manager.h
index f2ddb202198f0b70b4688438638c2174d1a8d766..06814976f203a761bd5c634424798faedc3f6f4a 100644
--- a/components/session_manager/core/session_manager.h
+++ b/components/session_manager/core/session_manager.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_H_
#define COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_H_
+#include <stdint.h>
+
#include <vector>
#include "base/macros.h"
@@ -39,7 +41,7 @@ class SESSION_EXPORT SessionManager {
// Returns true if we're logged in and browser has been started i.e.
// browser_creator.LaunchBrowser(...) was called after sign in
// or restart after crash.
- virtual bool IsSessionStarted() const;
+ bool IsSessionStarted() const;
// Called when browser session is started i.e. after
// browser_creator.LaunchBrowser(...) was called after user sign in.
@@ -49,6 +51,13 @@ class SESSION_EXPORT SessionManager {
// before the session has been started.
virtual void SessionStarted();
+ // Convenience wrapps of session state.
+ bool IsInSecondaryLoginScreen() const;
+ bool IsScreenLocked() const;
+
+ // Returns the maximum number of allowed user sessions.
+ uint32_t GetMaximumNumberOfUserSessions() const;
+
void AddObserver(SessionManagerObserver* observer);
void RemoveObserver(SessionManagerObserver* observer);
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ('k') | components/session_manager/core/session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698