gaia_constants.h revision 6e8cce623b6e4fe0c9e4af605d675dd9d0338c38
15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Constants used by IssueAuthToken and ClientLogin
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace GaiaConstants {
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Gaia sources for accounting
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kChromeOSSource[];
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kChromeSource[];
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Gaia services for requesting
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaService[];  // uber token
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kPicasaService[];
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kSyncService[];
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kRemotingService[];
216e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
226e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// OAuth2 scopes.
23a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)extern const char kOAuth1LoginScope[];
24a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)extern const char kOAuthWrapBridgeUserInfoScope[];
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kDeviceManagementServiceOAuth[];
26c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const char kAnyApiOAuth2Scope[];
277d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)extern const char kChromeSyncOAuth2Scope[];
28f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)extern const char kChromeSyncSupervisedOAuth2Scope[];
297d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)extern const char kGoogleTalkOAuth2Scope[];
306e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)extern const char kGoogleUserInfoEmail[];
316e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)extern const char kGoogleUserInfoProfile[];
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used with uber auth tokens when needed.
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaSid[];
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaLsid[];
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaOAuthToken[];
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaOAuthSecret[];
385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaOAuthDuration[];
395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaOAuth2LoginRefreshToken[];
405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to construct a channel ID for push messaging.
425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kObfuscatedGaiaId[];
435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
44c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Used by wallet sign in helper.
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kClientOAuthEmailKey[];
465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace GaiaConstants
485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // GOOGLE_APIS_GAIA_GAIA_CONSTANTS_H_
50