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

Side by Side Diff: chromeos/login/auth/user_context.h

Issue 378513005: [Athena] Extract Chrome OS authentication stack (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix includes in one more test Created 6 years, 5 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
« no previous file with comments | « chromeos/login/auth/key_unittest.cc ('k') | chromeos/login/auth/user_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_ 5 #ifndef CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_
6 #define CHROME_BROWSER_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 "chrome/browser/chromeos/login/auth/key.h" 10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/login/auth/key.h"
11 #include "components/user_manager/user_type.h" 12 #include "components/user_manager/user_type.h"
12 13
13 namespace chromeos { 14 namespace chromeos {
14 15
15 // Information that is passed around while authentication is in progress. The 16 // Information that is passed around while authentication is in progress. The
16 // credentials may consist of a |user_id_|, |key_| pair or a GAIA |auth_code_|. 17 // credentials may consist of a |user_id_|, |key_| pair or a GAIA |auth_code_|.
17 // The |user_id_hash_| is used to locate the user's home directory 18 // The |user_id_hash_| is used to locate the user's home directory
18 // mount point for the user. It is set when the mount has been completed. 19 // mount point for the user. It is set when the mount has been completed.
19 class UserContext { 20 class CHROMEOS_EXPORT UserContext {
20 public: 21 public:
21 // The authentication flow used during sign-in. 22 // The authentication flow used during sign-in.
22 enum AuthFlow { 23 enum AuthFlow {
23 // Online authentication against GAIA. GAIA did not redirect to a SAML IdP. 24 // Online authentication against GAIA. GAIA did not redirect to a SAML IdP.
24 AUTH_FLOW_GAIA_WITHOUT_SAML, 25 AUTH_FLOW_GAIA_WITHOUT_SAML,
25 // Online authentication against GAIA. GAIA redirected to a SAML IdP. 26 // Online authentication against GAIA. GAIA redirected to a SAML IdP.
26 AUTH_FLOW_GAIA_WITH_SAML, 27 AUTH_FLOW_GAIA_WITH_SAML,
27 // Offline authentication against a cached key. 28 // Offline authentication against a cached key.
28 AUTH_FLOW_OFFLINE 29 AUTH_FLOW_OFFLINE
29 }; 30 };
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 Key key_; 64 Key key_;
64 std::string auth_code_; 65 std::string auth_code_;
65 std::string user_id_hash_; 66 std::string user_id_hash_;
66 bool is_using_oauth_; 67 bool is_using_oauth_;
67 AuthFlow auth_flow_; 68 AuthFlow auth_flow_;
68 user_manager::UserType user_type_; 69 user_manager::UserType user_type_;
69 }; 70 };
70 71
71 } // namespace chromeos 72 } // namespace chromeos
72 73
73 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_ 74 #endif // CHROMEOS_LOGIN_AUTH_USER_CONTEXT_H_
OLDNEW
« no previous file with comments | « chromeos/login/auth/key_unittest.cc ('k') | chromeos/login/auth/user_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698