Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "ash/session/session_state_delegate.h" | 8 #include "ash/session/session_state_delegate.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 // Sets session state to |new_state|. | 71 // Sets session state to |new_state|. |
| 72 // If |force| is true then |new_state| is set even if existing session | 72 // If |force| is true then |new_state| is set even if existing session |
| 73 // state is the same (used for explicit initialization). | 73 // state is the same (used for explicit initialization). |
| 74 void SetSessionState(SessionState new_state, bool force); | 74 void SetSessionState(SessionState new_state, bool force); |
| 75 | 75 |
| 76 // Notify observers about session state change. | 76 // Notify observers about session state change. |
| 77 void NotifySessionStateChanged(); | 77 void NotifySessionStateChanged(); |
| 78 | 78 |
| 79 // Switch to a new user. This call might show a dialog asking the user if he | |
| 80 // wants to stop desktop casting before switching. | |
|
jennyz
2014/08/20 23:28:05
nit: Switch -> Switches.
Mr4D (OOO till 08-26)
2014/08/21 00:05:03
Done.
| |
| 81 void TryToSwitchUser(const std::string& user_id); | |
| 82 | |
| 79 // List of observers is only used on Chrome OS for now. | 83 // List of observers is only used on Chrome OS for now. |
| 80 ObserverList<ash::SessionStateObserver> session_state_observer_list_; | 84 ObserverList<ash::SessionStateObserver> session_state_observer_list_; |
| 81 | 85 |
| 82 // Session state (e.g. login screen vs. user session). | 86 // Session state (e.g. login screen vs. user session). |
| 83 SessionState session_state_; | 87 SessionState session_state_; |
| 84 | 88 |
| 85 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); | 89 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); |
| 86 }; | 90 }; |
| 87 | 91 |
| 88 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ | 92 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |