Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" // For OS_IOS | 10 #include "build/build_config.h" // For OS_IOS |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 | 23 |
| 24 // Profile mode flags. | 24 // Profile mode flags. |
| 25 enum ProfileMode { | 25 enum ProfileMode { |
| 26 PROFILE_MODE_DEFAULT = 0, | 26 PROFILE_MODE_DEFAULT = 0, |
| 27 // Incognito mode disabled by enterprise policy or by parental controls. | 27 // Incognito mode disabled by enterprise policy or by parental controls. |
| 28 PROFILE_MODE_INCOGNITO_DISABLED = 1 << 0, | 28 PROFILE_MODE_INCOGNITO_DISABLED = 1 << 0, |
| 29 // Adding account disabled in the Android-for-EDU mode. | 29 // Adding account disabled in the Android-for-EDU mode. |
| 30 PROFILE_MODE_ADD_ACCOUNT_DISABLED = 1 << 1 | 30 PROFILE_MODE_ADD_ACCOUNT_DISABLED = 1 << 1 |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 extern const char kChromeConnectedHeader[]; | 33 extern const char kChromeConnectedHeader[]; |
|
msarda
2017/06/07 13:06:30
I think these headers are public only for test.
I
droger
2017/06/07 13:29:57
Yes, that's fine.
msarda
2017/06/08 02:53:38
After today's discussion ,let's keep the current n
| |
| 34 extern const char kChromeIDConsistencyRequestHeader[]; | |
| 34 | 35 |
| 35 // The ServiceType specified by GAIA in the response header accompanying the 204 | 36 // The ServiceType specified by GAIA in the response header accompanying the 204 |
| 36 // response. This indicates the action Chrome is supposed to lead the user to | 37 // response. This indicates the action Chrome is supposed to lead the user to |
| 37 // perform. | 38 // perform. |
| 38 enum GAIAServiceType { | 39 enum GAIAServiceType { |
| 39 GAIA_SERVICE_TYPE_NONE = 0, // No GAIA response header. | 40 GAIA_SERVICE_TYPE_NONE = 0, // No GAIA response header. |
| 40 GAIA_SERVICE_TYPE_SIGNOUT, // Logout all existing sessions. | 41 GAIA_SERVICE_TYPE_SIGNOUT, // Logout all existing sessions. |
| 41 GAIA_SERVICE_TYPE_INCOGNITO, // Open an incognito tab. | 42 GAIA_SERVICE_TYPE_INCOGNITO, // Open an incognito tab. |
| 42 GAIA_SERVICE_TYPE_ADDSESSION, // Add a secondary account. | 43 GAIA_SERVICE_TYPE_ADDSESSION, // Add a secondary account. |
| 43 GAIA_SERVICE_TYPE_REAUTH, // Re-authenticate an account. | 44 GAIA_SERVICE_TYPE_REAUTH, // Re-authenticate an account. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 // Returns the parameters contained in the X-Chrome-Manage-Accounts response | 101 // Returns the parameters contained in the X-Chrome-Manage-Accounts response |
| 101 // header. | 102 // header. |
| 102 // If the request does not have a response header or if the header contains | 103 // If the request does not have a response header or if the header contains |
| 103 // garbage, then |service_type| is set to |GAIA_SERVICE_TYPE_NONE|. | 104 // garbage, then |service_type| is set to |GAIA_SERVICE_TYPE_NONE|. |
| 104 ManageAccountsParams BuildManageAccountsParamsIfExists(net::URLRequest* request, | 105 ManageAccountsParams BuildManageAccountsParamsIfExists(net::URLRequest* request, |
| 105 bool is_off_the_record); | 106 bool is_off_the_record); |
| 106 | 107 |
| 107 } // namespace signin | 108 } // namespace signin |
| 108 | 109 |
| 109 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ | 110 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ |
| OLD | NEW |