Chromium Code Reviews| 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..bc3a29558d12a347124b95e16b5a4e867c4525e8 100644 |
| --- a/chrome/browser/signin/token_service.h |
| +++ b/chrome/browser/signin/token_service.h |
| @@ -94,6 +94,19 @@ class TokenService : public GaiaAuthConsumer, |
| GoogleServiceAuthError error_; |
| }; |
| + class CredentialsUpdatedDetails { |
| + public: |
| + CredentialsUpdatedDetails() {} |
|
Andrew T Wilson (Slow)
2012/07/24 20:57:41
Do we need this default constructor? Seems illegal
Raghu Simha
2012/07/24 22:17:35
Removed.
|
| + 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 +195,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); |