gaia_constants.cc revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
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
3// found in the LICENSE file.
4//
5// Constants definitions
6
7#include "google_apis/gaia/gaia_constants.h"
8
9namespace GaiaConstants {
10
11// Gaia uses this for accounting where login is coming from.
12const char kChromeOSSource[] = "chromeos";
13const char kChromeSource[] = "ChromiumBrowser";
14
15// Service name for Gaia.  Used to convert to cookie auth.
16const char kGaiaService[] = "gaia";
17// Service name for Picasa API. API is used to get user's image.
18const char kPicasaService[] = "lh2";
19
20// Service/scope names for sync.
21const char kSyncService[] = "chromiumsync";
22
23// Service name for remoting.
24const char kRemotingService[] = "chromoting";
25// Service name for cloud print.
26const char kCloudPrintService[] = "cloudprint";
27
28// Service/scope names for device management (cloud-based policy) server.
29const char kDeviceManagementServiceOAuth[] =
30    "https://www.googleapis.com/auth/chromeosdevicemanagement";
31
32// OAuth2 scope for access to all Google APIs.
33const char kAnyApiOAuth2Scope[] = "https://www.googleapis.com/auth/any-api";
34
35// OAuth2 scope for access to Chrome sync APIs
36const char kChromeSyncOAuth2Scope[] =
37    "https://www.googleapis.com/auth/chromesync";
38// OAuth2 scope for access to Google Talk APIs (XMPP).
39const char kGoogleTalkOAuth2Scope[] =
40    "https://www.googleapis.com/auth/googletalk";
41
42// Service for LSO endpoint of Google that exposes OAuth APIs.
43const char kLSOService[] = "lso";
44
45// Used to mint uber auth tokens when needed.
46const char kGaiaSid[] = "sid";
47const char kGaiaLsid[] = "lsid";
48const char kGaiaOAuthToken[] = "oauthToken";
49const char kGaiaOAuthSecret[] = "oauthSecret";
50const char kGaiaOAuthDuration[] = "3600";
51const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken";
52
53// Used to construct a channel ID for push messaging.
54const char kObfuscatedGaiaId[] = "obfuscatedGaiaId";
55
56// Used to build ClientOAuth requests.  These are the names of keys used when
57// building base::DictionaryValue that represent the json data that makes up
58// the ClientOAuth endpoint protocol.  The comment above each constant explains
59// what value is associated with that key.
60
61// Canonical email of the account to sign in.
62const char kClientOAuthEmailKey[] = "email";
63
64}  // namespace GaiaConstants
65