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

Side by Side Diff: ash/session/session_state_delegate.h

Issue 560033002: Fixed suggesting adding more users into multi-profile session when we don't have more (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ASH_SESSION_SESSION_STATE_DELEGATE_H_ 5 #ifndef ASH_SESSION_SESSION_STATE_DELEGATE_H_
6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ 6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual content::BrowserContext* GetBrowserContextForWindow( 75 virtual content::BrowserContext* GetBrowserContextForWindow(
76 aura::Window* window) = 0; 76 aura::Window* window) = 0;
77 77
78 // Returns the maximum possible number of logged in users. 78 // Returns the maximum possible number of logged in users.
79 virtual int GetMaximumNumberOfLoggedInUsers() const = 0; 79 virtual int GetMaximumNumberOfLoggedInUsers() const = 0;
80 80
81 // Returns the number of signed in users. If 0 is returned, there is either 81 // Returns the number of signed in users. If 0 is returned, there is either
82 // no session in progress or no active user. 82 // no session in progress or no active user.
83 virtual int NumberOfLoggedInUsers() const = 0; 83 virtual int NumberOfLoggedInUsers() const = 0;
84 84
85 // Returns number of users admitted for logging in into multi-profile session.
86 virtual int GetNumberOfAdmittedForMultiProfileUsers() const = 0;
dzhioev (left Google) 2014/09/18 07:14:22 I think "GetNumberOfUsersAdmittedForMultiProfile"
Roman Sorokin (ftl) 2014/09/22 08:36:06 Done.
87
85 // Returns |true| if the session has been fully started for the active user. 88 // Returns |true| if the session has been fully started for the active user.
86 // When a user becomes active, the profile and browser UI are not immediately 89 // When a user becomes active, the profile and browser UI are not immediately
87 // available. Only once this method starts returning |true| is the browser 90 // available. Only once this method starts returning |true| is the browser
88 // startup complete and both profile and UI are fully available. 91 // startup complete and both profile and UI are fully available.
89 virtual bool IsActiveUserSessionStarted() const = 0; 92 virtual bool IsActiveUserSessionStarted() const = 0;
90 93
91 // Returns true if the screen can be locked. 94 // Returns true if the screen can be locked.
92 virtual bool CanLockScreen() const = 0; 95 virtual bool CanLockScreen() const = 0;
93 96
94 // Returns true if the screen is currently locked. 97 // Returns true if the screen is currently locked.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Adds or removes sessions state observer. 143 // Adds or removes sessions state observer.
141 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; 144 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0;
142 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; 145 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0;
143 146
144 bool IsInSecondaryLoginScreen() const; 147 bool IsInSecondaryLoginScreen() const;
145 }; 148 };
146 149
147 } // namespace ash 150 } // namespace ash
148 151
149 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ 152 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698