Chromium Code Reviews| Index: chrome/browser/signin/signin_header_helper.h |
| diff --git a/chrome/browser/signin/signin_header_helper.h b/chrome/browser/signin/signin_header_helper.h |
| index 0b0257b63d299f13c7eb40a7e9326759ea415e1e..d5f3e4d1adfb1469e643b85af61d3bb7d113daea 100644 |
| --- a/chrome/browser/signin/signin_header_helper.h |
| +++ b/chrome/browser/signin/signin_header_helper.h |
| @@ -27,6 +27,18 @@ enum PROFILE_MODE { |
| PROFILE_MODE_ADD_ACCOUNT_DISABLED = 1 << 1 |
| }; |
| +// The ServiceType specified by GAIA in the response header accompanying the 204 |
| +// response. This indicates the action Chrome is supposed to lead the user to |
| +// perform. |
| +enum GAIA_SERVICE_TYPE { |
|
sky
2014/05/23 19:55:22
This should be GaiaServiceType (or maybe GAIAServi
Mike Lerman
2014/05/23 20:13:04
Eek you're right. I had taken my example from abov
|
| + GAIA_SERVICE_TYPE_NONE = 0, // No GAIA response header. |
| + GAIA_SERVICE_TYPE_SIGNOUT, // Logout all existing sessions. |
| + GAIA_SERVICE_TYPE_SIGNOUTOPTIONS_INCOGNITO, // Open an incognito tab. |
| + GAIA_SERVICE_TYPE_ADDSESSION, // Add a secondary account. |
| + GAIA_SERVICE_TYPE_REAUTH, // Re-authenticate an account. |
| + GAIA_SERVICE_TYPE_DEFAULT, // All other cases. |
| +}; |
| + |
| // Add X-Chrome-Connected header to all Gaia requests from a connected profile, |
| // with the exception of requests from gaia webview. Must be called on IO |
| // thread. |