summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-06 21:03:18 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-06 21:03:18 +0000
commit055135d3e9158985f4e851b512c36d66d0bbdb4e (patch)
treeef678524c9ba3d52d6c298e2dfa3eab0736dec60 /sync/internal_api/public
parentef4cd9c40bdf611a785bafb33fc31542ee67eab4 (diff)
downloadchromium_src-055135d3e9158985f4e851b512c36d66d0bbdb4e.zip
chromium_src-055135d3e9158985f4e851b512c36d66d0bbdb4e.tar.gz
chromium_src-055135d3e9158985f4e851b512c36d66d0bbdb4e.tar.bz2
[Sync] Log age of auth tokens on authentication failure
The fetch/refresh time of the sync credentials are plumbed through to the server connection manager, which can then histogram their age in the event that there is an auth failure. BUG=none R=tim@chromium.org Review URL: https://codereview.chromium.org/14888003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public')
-rw-r--r--sync/internal_api/public/sync_manager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sync/internal_api/public/sync_manager.h b/sync/internal_api/public/sync_manager.h
index 2d71466..d754bf0 100644
--- a/sync/internal_api/public/sync_manager.h
+++ b/sync/internal_api/public/sync_manager.h
@@ -61,8 +61,12 @@ enum ConnectionStatus {
// Contains everything needed to talk to and identify a user account.
struct SyncCredentials {
+ // The email associated with this account.
std::string email;
+ // The raw authentication token's bytes.
std::string sync_token;
+ // (optional) The time at which the token was fetched/refreshed.
+ base::Time sync_token_time;
};
// SyncManager encapsulates syncable::Directory and serves as the parent of all