| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTH_USER_CONTEXT_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_ |
| 6 #define CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_ | 6 #define CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 enum AuthFlow { | 27 enum AuthFlow { |
| 28 // Online authentication against GAIA. GAIA did not redirect to a SAML IdP. | 28 // Online authentication against GAIA. GAIA did not redirect to a SAML IdP. |
| 29 AUTH_FLOW_GAIA_WITHOUT_SAML, | 29 AUTH_FLOW_GAIA_WITHOUT_SAML, |
| 30 // Online authentication against GAIA. GAIA redirected to a SAML IdP. | 30 // Online authentication against GAIA. GAIA redirected to a SAML IdP. |
| 31 AUTH_FLOW_GAIA_WITH_SAML, | 31 AUTH_FLOW_GAIA_WITH_SAML, |
| 32 // Offline authentication against a cached key. | 32 // Offline authentication against a cached key. |
| 33 AUTH_FLOW_OFFLINE, | 33 AUTH_FLOW_OFFLINE, |
| 34 // Offline authentication using and Easy unlock device (e.g. a phone). | 34 // Offline authentication using and Easy unlock device (e.g. a phone). |
| 35 AUTH_FLOW_EASY_UNLOCK, | 35 AUTH_FLOW_EASY_UNLOCK, |
| 36 // Easy bootstrap flow. | 36 // Easy bootstrap flow. |
| 37 AUTH_FLOW_EASY_BOOTSTRAP | 37 AUTH_FLOW_EASY_BOOTSTRAP, |
| 38 // Authentication against Active Directory server. |
| 39 AUTH_FLOW_ACTIVE_DIRECTORY, |
| 38 }; | 40 }; |
| 39 | 41 |
| 40 UserContext(); | 42 UserContext(); |
| 41 UserContext(const UserContext& other); | 43 UserContext(const UserContext& other); |
| 42 explicit UserContext(const AccountId& account_id); | 44 explicit UserContext(const AccountId& account_id); |
| 43 UserContext(user_manager::UserType user_type, const AccountId& account_id); | 45 UserContext(user_manager::UserType user_type, const AccountId& account_id); |
| 44 ~UserContext(); | 46 ~UserContext(); |
| 45 | 47 |
| 46 bool operator==(const UserContext& context) const; | 48 bool operator==(const UserContext& context) const; |
| 47 bool operator!=(const UserContext& context) const; | 49 bool operator!=(const UserContext& context) const; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 user_manager::UserType user_type_ = user_manager::USER_TYPE_REGULAR; | 97 user_manager::UserType user_type_ = user_manager::USER_TYPE_REGULAR; |
| 96 std::string public_session_locale_; | 98 std::string public_session_locale_; |
| 97 std::string public_session_input_method_; | 99 std::string public_session_input_method_; |
| 98 std::string device_id_; | 100 std::string device_id_; |
| 99 std::string gaps_cookie_; | 101 std::string gaps_cookie_; |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 } // namespace chromeos | 104 } // namespace chromeos |
| 103 | 105 |
| 104 #endif // CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_ | 106 #endif // CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_ |
| OLD | NEW |