diff options
author | rickcam@chromium.org <rickcam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-04 22:29:31 +0000 |
---|---|---|
committer | rickcam@chromium.org <rickcam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-04 22:29:31 +0000 |
commit | 4e52bf069e1a50c9317190a6143e048f5e85fdfc (patch) | |
tree | 95b5d038653a7f5fb012cb2a764a3efbdc224d17 /chrome/common | |
parent | b2519c1860a414f0d69c61a14313199ddd893767 (diff) | |
download | chromium_src-4e52bf069e1a50c9317190a6143e048f5e85fdfc.zip chromium_src-4e52bf069e1a50c9317190a6143e048f5e85fdfc.tar.gz chromium_src-4e52bf069e1a50c9317190a6143e048f5e85fdfc.tar.bz2 |
BUG=91661
TEST=unit
Review URL: http://codereview.chromium.org/7574009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/net/gaia/gaia_constants.cc | 13 | ||||
-rw-r--r-- | chrome/common/net/gaia/gaia_constants.h | 7 |
2 files changed, 17 insertions, 3 deletions
diff --git a/chrome/common/net/gaia/gaia_constants.cc b/chrome/common/net/gaia/gaia_constants.cc index edbd534..3d52c7b 100644 --- a/chrome/common/net/gaia/gaia_constants.cc +++ b/chrome/common/net/gaia/gaia_constants.cc @@ -16,19 +16,28 @@ const char kChromeSource[] = "ChromiumBrowser"; const char kGaiaService[] = "gaia"; // Service name for Gaia Contacts API. API is used to get user's image. const char kContactsService[] = "cp"; -// Service name for sync. + +// Service/scope names for sync. const char kSyncService[] = "chromiumsync"; +const char kSyncServiceOAuth[] = "https://www.googleapis.com/auth/chromesync"; + // Service name for XMPP Google Talk. const char kTalkService[] = "talk"; // Service name for remoting. const char kRemotingService[] = "chromoting"; // Service name for cloud print. const char kCloudPrintService[] = "cloudprint"; -// Service name for device management (cloud-based policy) server. + +// Service/scope names for device management (cloud-based policy) server. const char kDeviceManagementService[] = "mobilesync"; +const char kDeviceManagementServiceOAuth[] = + "https://www.googleapis.com/auth/chromeosdevicemanagement"; // Used to mint uber auth tokens when needed. const char kGaiaSid[] = "sid"; const char kGaiaLsid[] = "lsid"; +extern const char kGaiaOAuthToken[] = "oauthToken"; +extern const char kGaiaOAuthSecret[] = "oauthSecret"; +extern const char kGaiaOAuthDuration[] = "3600"; } // namespace GaiaConstants diff --git a/chrome/common/net/gaia/gaia_constants.h b/chrome/common/net/gaia/gaia_constants.h index e47a6ac..5e1cfd8 100644 --- a/chrome/common/net/gaia/gaia_constants.h +++ b/chrome/common/net/gaia/gaia_constants.h @@ -18,13 +18,18 @@ extern const char kGaiaService[]; // uber token extern const char kContactsService[]; extern const char kTalkService[]; extern const char kSyncService[]; +extern const char kSyncServiceOAuth[]; extern const char kRemotingService[]; extern const char kCloudPrintService[]; extern const char kDeviceManagementService[]; +extern const char kDeviceManagementServiceOAuth[]; -// Used to mint uber auth tokens when needed. +// Used with uber auth tokens when needed. extern const char kGaiaSid[]; extern const char kGaiaLsid[]; +extern const char kGaiaOAuthToken[]; +extern const char kGaiaOAuthSecret[]; +extern const char kGaiaOAuthDuration[]; } // namespace GaiaConstants |