| 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 CHROMEOS_LOGIN_LOGIN_STATE_H_ | 5 #ifndef CHROMEOS_LOGIN_LOGIN_STATE_H_ |
| 6 #define CHROMEOS_LOGIN_LOGIN_STATE_H_ | 6 #define CHROMEOS_LOGIN_LOGIN_STATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 LoginState(); | 101 LoginState(); |
| 102 virtual ~LoginState(); | 102 virtual ~LoginState(); |
| 103 | 103 |
| 104 void NotifyObservers(); | 104 void NotifyObservers(); |
| 105 | 105 |
| 106 LoggedInState logged_in_state_; | 106 LoggedInState logged_in_state_; |
| 107 LoggedInUserType logged_in_user_type_; | 107 LoggedInUserType logged_in_user_type_; |
| 108 std::string primary_user_hash_; | 108 std::string primary_user_hash_; |
| 109 ObserverList<Observer> observer_list_; | 109 base::ObserverList<Observer> observer_list_; |
| 110 | 110 |
| 111 // If true, it always thinks the current status as logged in. Set to true by | 111 // If true, it always thinks the current status as logged in. Set to true by |
| 112 // default running on a Linux desktop without flags and test cases. To test | 112 // default running on a Linux desktop without flags and test cases. To test |
| 113 // behaviors with a specific login state, call set_always_logged_in(false). | 113 // behaviors with a specific login state, call set_always_logged_in(false). |
| 114 bool always_logged_in_; | 114 bool always_logged_in_; |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(LoginState); | 116 DISALLOW_COPY_AND_ASSIGN(LoginState); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace chromeos | 119 } // namespace chromeos |
| 120 | 120 |
| 121 #endif // CHROMEOS_LOGIN_LOGIN_STATE_H_ | 121 #endif // CHROMEOS_LOGIN_LOGIN_STATE_H_ |
| OLD | NEW |