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

Side by Side Diff: ash/session_state_delegate.h

Issue 200483004: Show avatar icon on V2 app's frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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_STATE_DELEGATE_H_ 5 #ifndef ASH_SESSION_STATE_DELEGATE_H_
6 #define ASH_SESSION_STATE_DELEGATE_H_ 6 #define ASH_SESSION_STATE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 CYCLE_TO_NEXT_USER = 0, // Cycle to the next user. 44 CYCLE_TO_NEXT_USER = 0, // Cycle to the next user.
45 CYCLE_TO_PREVIOUS_USER, // Cycle to the previous user. 45 CYCLE_TO_PREVIOUS_USER, // Cycle to the previous user.
46 }; 46 };
47 47
48 virtual ~SessionStateDelegate() {}; 48 virtual ~SessionStateDelegate() {};
49 49
50 // Returns the browser context for the user given by |index|. 50 // Returns the browser context for the user given by |index|.
51 virtual content::BrowserContext* GetBrowserContextByIndex( 51 virtual content::BrowserContext* GetBrowserContextByIndex(
52 MultiProfileIndex index) = 0; 52 MultiProfileIndex index) = 0;
53 53
54 // Return the browser context associated witht he window.
Mr4D (OOO till 08-26) 2014/03/14 22:01:30 .. with the ..
oshima 2014/03/15 01:32:32 Done.
55 virtual content::BrowserContext* GetBrowserContextForWindow(
56 aura::Window* window) = 0;
57
54 // Returns the maximum possible number of logged in users. 58 // Returns the maximum possible number of logged in users.
55 virtual int GetMaximumNumberOfLoggedInUsers() const = 0; 59 virtual int GetMaximumNumberOfLoggedInUsers() const = 0;
56 60
57 // Returns the number of signed in users. If 0 is returned, there is either 61 // Returns the number of signed in users. If 0 is returned, there is either
58 // no session in progress or no active user. 62 // no session in progress or no active user.
59 virtual int NumberOfLoggedInUsers() const = 0; 63 virtual int NumberOfLoggedInUsers() const = 0;
60 64
61 // Returns |true| if the session has been fully started for the active user. 65 // Returns |true| if the session has been fully started for the active user.
62 // When a user becomes active, the profile and browser UI are not immediately 66 // When a user becomes active, the profile and browser UI are not immediately
63 // available. Only once this method starts returning |true| is the browser 67 // available. Only once this method starts returning |true| is the browser
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void CycleActiveUser(CycleUser cycle_user) = 0; 121 virtual void CycleActiveUser(CycleUser cycle_user) = 0;
118 122
119 // Adds or removes sessions state observer. 123 // Adds or removes sessions state observer.
120 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; 124 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0;
121 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; 125 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0;
122 }; 126 };
123 127
124 } // namespace ash 128 } // namespace ash
125 129
126 #endif // ASH_SESSION_STATE_DELEGATE_H_ 130 #endif // ASH_SESSION_STATE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698