diff options
author | petewil@chromium.org <petewil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-01 22:49:43 +0000 |
---|---|---|
committer | petewil@chromium.org <petewil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-01 22:49:43 +0000 |
commit | 18b82392e590540cec2a2fe19bf03b8231ded49e (patch) | |
tree | 8b20abbce0aca7f5a9059941ef63656d1db4359c /google_apis | |
parent | ee62ae2d075c19e0c327dbc0e3a4e1d78413786d (diff) | |
download | chromium_src-18b82392e590540cec2a2fe19bf03b8231ded49e.zip chromium_src-18b82392e590540cec2a2fe19bf03b8231ded49e.tar.gz chromium_src-18b82392e590540cec2a2fe19bf03b8231ded49e.tar.bz2 |
Cache the channel ID
To prevent hitting rate limits on how fast we can access the server to get an
auth token to get a channel Id, we cache the channel Id when we get one.
Note that a channel Id is per profile, so we store them by profile login name.
BUG=149733
Review URL: https://chromiumcodereview.appspot.com/10951022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/gaia/gaia_constants.cc | 2 | ||||
-rw-r--r-- | google_apis/gaia/gaia_constants.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/google_apis/gaia/gaia_constants.cc b/google_apis/gaia/gaia_constants.cc index 8a5910c..575e343 100644 --- a/google_apis/gaia/gaia_constants.cc +++ b/google_apis/gaia/gaia_constants.cc @@ -46,6 +46,8 @@ const char kGaiaOAuthDuration[] = "3600"; const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; const char kGaiaOAuth2LoginAccessToken[] = "oauth2LoginAccessToken"; +// Used to construct a channel ID for push messaging. +const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; // Used to build ClientOAuth requests. These are the names of keys used when // building base::DictionaryValue that represent the json data that makes up diff --git a/google_apis/gaia/gaia_constants.h b/google_apis/gaia/gaia_constants.h index a00635e..d09141c 100644 --- a/google_apis/gaia/gaia_constants.h +++ b/google_apis/gaia/gaia_constants.h @@ -34,6 +34,9 @@ extern const char kGaiaOAuthDuration[]; extern const char kGaiaOAuth2LoginRefreshToken[]; extern const char kGaiaOAuth2LoginAccessToken[]; +// Used to construct a channel ID for push messaging. +extern const char kObfuscatedGaiaId[]; + // Used to build ClientOAuth requests. These are the names of keys used in // the json dictionaries that are sent in the protocol. extern const char kClientOAuthEmailKey[]; |