diff options
Diffstat (limited to 'google_apis/gaia/oauth2_mint_token_flow.h')
-rw-r--r-- | google_apis/gaia/oauth2_mint_token_flow.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/google_apis/gaia/oauth2_mint_token_flow.h b/google_apis/gaia/oauth2_mint_token_flow.h index 40850b4..e2824e6 100644 --- a/google_apis/gaia/oauth2_mint_token_flow.h +++ b/google_apis/gaia/oauth2_mint_token_flow.h @@ -90,7 +90,8 @@ class OAuth2MintTokenFlow : public OAuth2ApiCallFlow { class Delegate { public: - virtual void OnMintTokenSuccess(const std::string& access_token) {} + virtual void OnMintTokenSuccess(const std::string& access_token, + int time_to_live) {} virtual void OnIssueAdviceSuccess(const IssueAdviceInfo& issue_advice) {} virtual void OnMintTokenFailure(const GoogleServiceAuthError& error) {} @@ -126,14 +127,15 @@ class OAuth2MintTokenFlow : public OAuth2ApiCallFlow { FRIEND_TEST_ALL_PREFIXES(OAuth2MintTokenFlowTest, ProcessMintAccessTokenFailure); - void ReportSuccess(const std::string& access_token); + void ReportSuccess(const std::string& access_token, int time_to_live); void ReportIssueAdviceSuccess(const IssueAdviceInfo& issue_advice); void ReportFailure(const GoogleServiceAuthError& error); static bool ParseIssueAdviceResponse( const base::DictionaryValue* dict, IssueAdviceInfo* issue_advice); static bool ParseMintTokenResponse( - const base::DictionaryValue* dict, std::string* access_token); + const base::DictionaryValue* dict, std::string* access_token, + int* time_to_live); Delegate* delegate_; Parameters parameters_; |