| 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);
|
|
|
|
|