Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: chrome/browser/signin/token_service.h

Issue 10656033: [sync] Automatic bootstrapping of Sync on Win 8 from cached credentials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_dependency_manager.cc ('k') | chrome/browser/signin/token_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/token_service.h
diff --git a/chrome/browser/signin/token_service.h b/chrome/browser/signin/token_service.h
index 8e39362a9744902f244fda9a1f1210dc5e93013a..a4106d63cde735e2a9d7b2880e2b92e33c13adc2 100644
--- a/chrome/browser/signin/token_service.h
+++ b/chrome/browser/signin/token_service.h
@@ -94,6 +94,18 @@ class TokenService : public GaiaAuthConsumer,
GoogleServiceAuthError error_;
};
+ class CredentialsUpdatedDetails {
+ public:
+ CredentialsUpdatedDetails(const std::string& lsid,
+ const std::string& sid)
+ : lsid_(lsid), sid_(sid) {}
+ const std::string& lsid() const { return lsid_; }
+ const std::string& sid() const { return sid_; }
+ private:
+ std::string lsid_;
+ std::string sid_;
+ };
+
// Initialize this token service with a request source
// (usually from a GaiaAuthConsumer constant), and the profile.
// Typically you'd then update the credentials.
@@ -182,6 +194,9 @@ class TokenService : public GaiaAuthConsumer,
// This method is meant only for tests.
static void GetServiceNamesForTesting(std::vector<std::string>* names);
+ void FireCredentialsUpdatedNotification(const std::string& lsid,
+ const std::string& sid);
+
void FireTokenAvailableNotification(const std::string& service,
const std::string& auth_token);
« no previous file with comments | « chrome/browser/profiles/profile_dependency_manager.cc ('k') | chrome/browser/signin/token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698