| Index: remoting/host/gaia_oauth_client.h
|
| ===================================================================
|
| --- remoting/host/gaia_oauth_client.h (revision 138203)
|
| +++ remoting/host/gaia_oauth_client.h (working copy)
|
| @@ -21,18 +21,15 @@
|
| // this duplication.
|
| namespace remoting {
|
|
|
| +// TODO(jamiewalch): Make this configurable if we ever support other providers.
|
| +static const char kGaiaOAuth2Url[] =
|
| + "https://accounts.google.com/o/oauth2/token";
|
| +
|
| struct OAuthClientInfo {
|
| std::string client_id;
|
| std::string client_secret;
|
| };
|
|
|
| -struct OAuthProviderInfo {
|
| - static OAuthProviderInfo GetDefault();
|
| -
|
| - std::string access_token_url;
|
| - std::string user_info_url;
|
| -};
|
| -
|
| class GaiaOAuthClient {
|
| public:
|
| class Delegate {
|
| @@ -40,8 +37,7 @@
|
| virtual ~Delegate() { }
|
|
|
| // Invoked on a successful response to the RefreshToken request.
|
| - virtual void OnRefreshTokenResponse(const std::string& user_email,
|
| - const std::string& access_token,
|
| + virtual void OnRefreshTokenResponse(const std::string& access_token,
|
| int expires_in_seconds) = 0;
|
| // Invoked when there is an OAuth error with one of the requests.
|
| virtual void OnOAuthError() = 0;
|
| @@ -49,8 +45,7 @@
|
| // invalid response.
|
| virtual void OnNetworkError(int response_code) = 0;
|
| };
|
| -
|
| - GaiaOAuthClient(const OAuthProviderInfo& provider_info,
|
| + GaiaOAuthClient(const std::string& gaia_url,
|
| net::URLRequestContextGetter* context_getter);
|
| ~GaiaOAuthClient();
|
|
|
|
|