OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/common/net/gaia/gaia_constants.h" | 7 #include "chrome/common/net/gaia/gaia_constants.h" |
8 | 8 |
9 namespace GaiaConstants { | 9 namespace GaiaConstants { |
10 | 10 |
11 // Gaia uses this for accounting where login is coming from. | 11 // Gaia uses this for accounting where login is coming from. |
12 const char kChromeOSSource[] = "chromeos"; | 12 const char kChromeOSSource[] = "chromeos"; |
13 const char kChromeSource[] = "ChromiumBrowser"; | 13 const char kChromeSource[] = "ChromiumBrowser"; |
14 | 14 |
15 // Service name for Gaia. Used to convert to cookie auth. | 15 // Service name for Gaia. Used to convert to cookie auth. |
16 const char kGaiaService[] = "gaia"; | 16 const char kGaiaService[] = "gaia"; |
17 // Service name for Gaia Contacts API. API is used to get user's image. | 17 // Service name for Gaia Contacts API. API is used to get user's image. |
18 const char kContactsService[] = "cp"; | 18 const char kContactsService[] = "cp"; |
19 // Service name for sync. | 19 |
| 20 // Service/scope names for sync. |
20 const char kSyncService[] = "chromiumsync"; | 21 const char kSyncService[] = "chromiumsync"; |
| 22 const char kSyncServiceOAuth[] = "https://www.googleapis.com/auth/chromesync"; |
| 23 |
21 // Service name for XMPP Google Talk. | 24 // Service name for XMPP Google Talk. |
22 const char kTalkService[] = "talk"; | 25 const char kTalkService[] = "talk"; |
23 // Service name for remoting. | 26 // Service name for remoting. |
24 const char kRemotingService[] = "chromoting"; | 27 const char kRemotingService[] = "chromoting"; |
25 // Service name for cloud print. | 28 // Service name for cloud print. |
26 const char kCloudPrintService[] = "cloudprint"; | 29 const char kCloudPrintService[] = "cloudprint"; |
27 // Service name for device management (cloud-based policy) server. | 30 |
| 31 // Service/scope names for device management (cloud-based policy) server. |
28 const char kDeviceManagementService[] = "mobilesync"; | 32 const char kDeviceManagementService[] = "mobilesync"; |
| 33 const char kDeviceManagementServiceOAuth[] = |
| 34 "https://www.googleapis.com/auth/chromeosdevicemanagement"; |
29 | 35 |
30 // Used to mint uber auth tokens when needed. | 36 // Used to mint uber auth tokens when needed. |
31 const char kGaiaSid[] = "sid"; | 37 const char kGaiaSid[] = "sid"; |
32 const char kGaiaLsid[] = "lsid"; | 38 const char kGaiaLsid[] = "lsid"; |
| 39 extern const char kGaiaOAuthToken[] = "oauthToken"; |
| 40 extern const char kGaiaOAuthSecret[] = "oauthSecret"; |
| 41 extern const char kGaiaOAuthDuration[] = "3600"; |
33 | 42 |
34 } // namespace GaiaConstants | 43 } // namespace GaiaConstants |
OLD | NEW |