| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Constants used by IssueAuthToken and ClientLogin | 5 // Constants used by IssueAuthToken and ClientLogin |
| 6 | 6 |
| 7 #ifndef GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_ | 7 #ifndef GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_ |
| 8 #define GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_ | 8 #define GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_ |
| 9 | 9 |
| 10 #include "base/time.h" |
| 11 |
| 10 namespace GaiaConstants { | 12 namespace GaiaConstants { |
| 11 | 13 |
| 12 // Gaia sources for accounting | 14 // Gaia sources for accounting |
| 13 extern const char kChromeOSSource[]; | 15 extern const char kChromeOSSource[]; |
| 14 extern const char kChromeSource[]; | 16 extern const char kChromeSource[]; |
| 15 | 17 |
| 16 // Gaia services for requesting | 18 // Gaia services for requesting |
| 17 extern const char kGaiaService[]; // uber token | 19 extern const char kGaiaService[]; // uber token |
| 18 extern const char kPicasaService[]; | 20 extern const char kPicasaService[]; |
| 19 extern const char kSyncService[]; | 21 extern const char kSyncService[]; |
| 20 extern const char kRemotingService[]; | 22 extern const char kRemotingService[]; |
| 21 extern const char kCloudPrintService[]; | 23 extern const char kCloudPrintService[]; |
| 22 extern const char kDeviceManagementServiceOAuth[]; | 24 extern const char kDeviceManagementServiceOAuth[]; |
| 23 extern const char kCWSService[]; | 25 extern const char kCWSService[]; |
| 24 extern const char kCWSNotificationScope[]; | 26 extern const char kCWSNotificationScope[]; |
| 25 extern const char kLSOService[]; | 27 extern const char kLSOService[]; |
| 26 | 28 |
| 27 // Used with uber auth tokens when needed. | 29 // Used with uber auth tokens when needed. |
| 28 extern const char kGaiaSid[]; | 30 extern const char kGaiaSid[]; |
| 29 extern const char kGaiaLsid[]; | 31 extern const char kGaiaLsid[]; |
| 30 extern const char kGaiaOAuthToken[]; | 32 extern const char kGaiaOAuthToken[]; |
| 31 extern const char kGaiaOAuthSecret[]; | 33 extern const char kGaiaOAuthSecret[]; |
| 32 extern const char kGaiaOAuthDuration[]; | 34 extern const char kGaiaOAuthDuration[]; |
| 33 extern const char kGaiaOAuth2LoginRefreshToken[]; | 35 extern const char kGaiaOAuth2LoginRefreshToken[]; |
| 34 extern const char kGaiaOAuth2LoginAccessToken[]; | 36 extern const char kGaiaOAuth2LoginAccessToken[]; |
| 35 | 37 |
| 36 // Used to construct a channel ID for push messaging. | 38 // Used to construct a channel ID for push messaging. |
| 37 extern const char kObfuscatedGaiaId[]; | 39 extern const char kObfuscatedGaiaId[]; |
| 40 // How long to keep an obfuscated Gaia Id in an internal cache, in milliseconds. |
| 41 extern const base::TimeDelta kObfuscatedGaiaIdTimeout; |
| 38 | 42 |
| 39 // Used to build ClientOAuth requests. These are the names of keys used in | 43 // Used to build ClientOAuth requests. These are the names of keys used in |
| 40 // the json dictionaries that are sent in the protocol. | 44 // the json dictionaries that are sent in the protocol. |
| 41 extern const char kClientOAuthEmailKey[]; | 45 extern const char kClientOAuthEmailKey[]; |
| 42 extern const char kClientOAuthPasswordKey[]; | 46 extern const char kClientOAuthPasswordKey[]; |
| 43 extern const char kClientOAuthScopesKey[]; | 47 extern const char kClientOAuthScopesKey[]; |
| 44 extern const char kClientOAuthOAuth2ClientIdKey[]; | 48 extern const char kClientOAuthOAuth2ClientIdKey[]; |
| 45 extern const char kClientOAuthFriendlyDeviceNameKey[]; | 49 extern const char kClientOAuthFriendlyDeviceNameKey[]; |
| 46 extern const char kClientOAuthAcceptsChallengesKey[]; | 50 extern const char kClientOAuthAcceptsChallengesKey[]; |
| 47 extern const char kClientOAuthLocaleKey[]; | 51 extern const char kClientOAuthLocaleKey[]; |
| 48 extern const char kClientOAuthFallbackNameKey[]; | 52 extern const char kClientOAuthFallbackNameKey[]; |
| 49 extern const char kClientOAuthNameKey[]; | 53 extern const char kClientOAuthNameKey[]; |
| 50 extern const char kClientOAuthChallengeTokenKey[]; | 54 extern const char kClientOAuthChallengeTokenKey[]; |
| 51 extern const char kClientOAuthchallengeReplyKey[]; | 55 extern const char kClientOAuthchallengeReplyKey[]; |
| 52 | 56 |
| 53 } // namespace GaiaConstants | 57 } // namespace GaiaConstants |
| 54 | 58 |
| 55 #endif // GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_ | 59 #endif // GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_ |
| OLD | NEW |