Chromium Code Reviews| 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 definitions | 5 // Constants definitions |
| 6 | 6 |
| 7 #include "google_apis/gaia/gaia_constants.h" | 7 #include "google_apis/gaia/gaia_constants.h" |
| 8 | 8 |
| 9 namespace GaiaConstants { | 9 namespace GaiaConstants { |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 const char kGaiaSid[] = "sid"; | 40 const char kGaiaSid[] = "sid"; |
| 41 const char kGaiaLsid[] = "lsid"; | 41 const char kGaiaLsid[] = "lsid"; |
| 42 const char kGaiaOAuthToken[] = "oauthToken"; | 42 const char kGaiaOAuthToken[] = "oauthToken"; |
| 43 const char kGaiaOAuthSecret[] = "oauthSecret"; | 43 const char kGaiaOAuthSecret[] = "oauthSecret"; |
| 44 const char kGaiaOAuthDuration[] = "3600"; | 44 const char kGaiaOAuthDuration[] = "3600"; |
| 45 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; | 45 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; |
| 46 const char kGaiaOAuth2LoginAccessToken[] = "oauth2LoginAccessToken"; | 46 const char kGaiaOAuth2LoginAccessToken[] = "oauth2LoginAccessToken"; |
| 47 | 47 |
| 48 // Used to construct a channel ID for push messaging. | 48 // Used to construct a channel ID for push messaging. |
| 49 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; | 49 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; |
| 50 const base::TimeDelta kObfuscatedGaiaIdTimeout = base::TimeDelta::FromDays(30); | |
|
dcheng
2013/03/04 22:40:59
This creates a static initializer, which we really
Pete Williamson
2013/03/05 19:42:25
Done.
| |
| 50 | 51 |
| 51 // Used to build ClientOAuth requests. These are the names of keys used when | 52 // Used to build ClientOAuth requests. These are the names of keys used when |
| 52 // building base::DictionaryValue that represent the json data that makes up | 53 // building base::DictionaryValue that represent the json data that makes up |
| 53 // the ClientOAuth endpoint protocol. The comment above each constant explains | 54 // the ClientOAuth endpoint protocol. The comment above each constant explains |
| 54 // what value is associated with that key. | 55 // what value is associated with that key. |
| 55 | 56 |
| 56 // Canonical email and password of the account to sign in. | 57 // Canonical email and password of the account to sign in. |
| 57 const char kClientOAuthEmailKey[] = "email"; | 58 const char kClientOAuthEmailKey[] = "email"; |
| 58 const char kClientOAuthPasswordKey[] = "password"; | 59 const char kClientOAuthPasswordKey[] = "password"; |
| 59 | 60 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 87 // in kClientOAuthAcceptsChallengesKey from that original request. | 88 // in kClientOAuthAcceptsChallengesKey from that original request. |
| 88 const char kClientOAuthNameKey[] = "name"; | 89 const char kClientOAuthNameKey[] = "name"; |
| 89 | 90 |
| 90 // The challenge token received in the original ClientOAuth request. | 91 // The challenge token received in the original ClientOAuth request. |
| 91 const char kClientOAuthChallengeTokenKey[] = "challenge_token"; | 92 const char kClientOAuthChallengeTokenKey[] = "challenge_token"; |
| 92 | 93 |
| 93 // The dictionary that contains the challenge response. | 94 // The dictionary that contains the challenge response. |
| 94 const char kClientOAuthchallengeReplyKey[] = "challenge_reply"; | 95 const char kClientOAuthchallengeReplyKey[] = "challenge_reply"; |
| 95 | 96 |
| 96 } // namespace GaiaConstants | 97 } // namespace GaiaConstants |
| OLD | NEW |