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 17 matching lines...) Expand all Loading... | |
28 // Service/scope names for device management (cloud-based policy) server. | 28 // Service/scope names for device management (cloud-based policy) server. |
29 const char kDeviceManagementServiceOAuth[] = | 29 const char kDeviceManagementServiceOAuth[] = |
30 "https://www.googleapis.com/auth/chromeosdevicemanagement"; | 30 "https://www.googleapis.com/auth/chromeosdevicemanagement"; |
31 | 31 |
32 // OAuth2 scope for access to all Google APIs. | 32 // OAuth2 scope for access to all Google APIs. |
33 const char kAnyApiOAuth2Scope[] = "https://www.googleapis.com/auth/any-api"; | 33 const char kAnyApiOAuth2Scope[] = "https://www.googleapis.com/auth/any-api"; |
34 | 34 |
35 // OAuth2 scope for access to Chrome sync APIs | 35 // OAuth2 scope for access to Chrome sync APIs |
36 const char kChromeSyncOAuth2Scope[] = | 36 const char kChromeSyncOAuth2Scope[] = |
37 "https://www.googleapis.com/auth/chromesync"; | 37 "https://www.googleapis.com/auth/chromesync"; |
38 // OAuth2 scope for access to the Chrome Sync APIs for managed profiles. | |
39 const char kChromeSyncManagedOAuth2Scope[] = | |
40 "https://www.googleapis.com/auth/chromesync_playpen"; | |
38 // OAuth2 scope for access to Google Talk APIs (XMPP). | 41 // OAuth2 scope for access to Google Talk APIs (XMPP). |
39 const char kGoogleTalkOAuth2Scope[] = | 42 const char kGoogleTalkOAuth2Scope[] = |
40 "https://www.googleapis.com/auth/googletalk"; | 43 "https://www.googleapis.com/auth/googletalk"; |
41 | 44 |
45 | |
Joao da Silva
2013/06/12 15:30:29
Why this newline? :-)
Bernhard Bauer
2013/06/12 19:01:39
Excellent question! Removed.
| |
42 // Service for LSO endpoint of Google that exposes OAuth APIs. | 46 // Service for LSO endpoint of Google that exposes OAuth APIs. |
43 const char kLSOService[] = "lso"; | 47 const char kLSOService[] = "lso"; |
44 | 48 |
45 // Used to mint uber auth tokens when needed. | 49 // Used to mint uber auth tokens when needed. |
46 const char kGaiaSid[] = "sid"; | 50 const char kGaiaSid[] = "sid"; |
47 const char kGaiaLsid[] = "lsid"; | 51 const char kGaiaLsid[] = "lsid"; |
48 const char kGaiaOAuthToken[] = "oauthToken"; | 52 const char kGaiaOAuthToken[] = "oauthToken"; |
49 const char kGaiaOAuthSecret[] = "oauthSecret"; | 53 const char kGaiaOAuthSecret[] = "oauthSecret"; |
50 const char kGaiaOAuthDuration[] = "3600"; | 54 const char kGaiaOAuthDuration[] = "3600"; |
51 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; | 55 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; |
52 | 56 |
53 // Used to construct a channel ID for push messaging. | 57 // Used to construct a channel ID for push messaging. |
54 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; | 58 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; |
55 | 59 |
56 // Used to build ClientOAuth requests. These are the names of keys used when | 60 // 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 | 61 // building base::DictionaryValue that represent the json data that makes up |
58 // the ClientOAuth endpoint protocol. The comment above each constant explains | 62 // the ClientOAuth endpoint protocol. The comment above each constant explains |
59 // what value is associated with that key. | 63 // what value is associated with that key. |
60 | 64 |
61 // Canonical email of the account to sign in. | 65 // Canonical email of the account to sign in. |
62 const char kClientOAuthEmailKey[] = "email"; | 66 const char kClientOAuthEmailKey[] = "email"; |
63 | 67 |
64 } // namespace GaiaConstants | 68 } // namespace GaiaConstants |
OLD | NEW |