OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 struct DiceResponseParams { | 75 struct DiceResponseParams { |
76 DiceResponseParams(); | 76 DiceResponseParams(); |
77 ~DiceResponseParams(); | 77 ~DiceResponseParams(); |
78 DiceResponseParams(const DiceResponseParams& other); | 78 DiceResponseParams(const DiceResponseParams& other); |
79 | 79 |
80 DiceAction user_intention; | 80 DiceAction user_intention; |
81 | 81 |
82 // Gaia ID of the account signed in or signed out (which may be a secondary | 82 // Gaia ID of the account signed in or signed out (which may be a secondary |
83 // account). When |user_intention| is SIGNOUT, this is the ID of the primary | 83 // account). When |user_intention| is SIGNOUT, this is the ID of the primary |
84 // account. | 84 // account. |
85 std::string obfuscated_gaia_id; | 85 std::string gaia_id; |
86 | 86 |
87 // Email of the account signed in or signed out. When |user_intention| is | 87 // Email of the account signed in or signed out. When |user_intention| is |
88 // SIGNOUT, this is the email of the primary account. | 88 // SIGNOUT, this is the email of the primary account. |
89 std::string email; | 89 std::string email; |
90 | 90 |
91 // Session index for the account signed in or signed out. When | 91 // Session index for the account signed in or signed out. When |
92 // |user_intention| is SIGNOUT, this is 0. | 92 // |user_intention| is SIGNOUT, this is 0. |
93 int session_index; | 93 int session_index; |
94 | 94 |
95 // Optional. Must be set when |user_intention| is SIGNIN. | 95 // Optional. Must be set when |user_intention| is SIGNIN. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // Returns the parameters contained in the X-Chrome-ID-Consistency-Response | 159 // Returns the parameters contained in the X-Chrome-ID-Consistency-Response |
160 // response header. | 160 // response header. |
161 // Returns DiceAction::NONE in case of error (such as missing or malformed | 161 // Returns DiceAction::NONE in case of error (such as missing or malformed |
162 // parameters). | 162 // parameters). |
163 DiceResponseParams BuildDiceResponseParams(const std::string& header_value); | 163 DiceResponseParams BuildDiceResponseParams(const std::string& header_value); |
164 #endif | 164 #endif |
165 | 165 |
166 } // namespace signin | 166 } // namespace signin |
167 | 167 |
168 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ | 168 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ |
OLD | NEW |