diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-27 00:44:54 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-27 00:44:54 +0000 |
commit | d1a73b3eb79363e5864d4c1c3df17312144db345 (patch) | |
tree | 4b0003c3fe60a66d18ce9f8f76b6fda937763f06 /remoting/host/signaling_connector.h | |
parent | 6b16679e5700658051a581bb61b37e5b542ef818 (diff) | |
download | chromium_src-d1a73b3eb79363e5864d4c1c3df17312144db345.zip chromium_src-d1a73b3eb79363e5864d4c1c3df17312144db345.tar.gz chromium_src-d1a73b3eb79363e5864d4c1c3df17312144db345.tar.bz2 |
Remove GaiaOauthClient and GaiaUserEmailFetcher from remoting.
The OAuth functionality remoting needs is implemented in google_api module.
There is no need to duplicate it in remoting.
Review URL: https://codereview.chromium.org/11273024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164461 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/signaling_connector.h')
-rw-r--r-- | remoting/host/signaling_connector.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/remoting/host/signaling_connector.h b/remoting/host/signaling_connector.h index 338fd0b..ee175c6 100644 --- a/remoting/host/signaling_connector.h +++ b/remoting/host/signaling_connector.h @@ -10,7 +10,7 @@ #include "base/threading/non_thread_safe.h" #include "base/timer.h" #include "net/base/network_change_notifier.h" -#include "remoting/host/gaia_oauth_client.h" +#include "google_apis/gaia/gaia_oauth_client.h" #include "remoting/jingle_glue/xmpp_signal_strategy.h" namespace net { @@ -34,23 +34,19 @@ class SignalingConnector public SignalStrategy::Listener, public net::NetworkChangeNotifier::ConnectionTypeObserver, public net::NetworkChangeNotifier::IPAddressObserver, - public GaiaOAuthClient::Delegate { + public gaia::GaiaOAuthClient::Delegate { public: // This structure contains information required to perform // authentication to OAuth2. struct OAuthCredentials { OAuthCredentials(const std::string& login_value, - const std::string& refresh_token_value, - const OAuthClientInfo& client_info); + const std::string& refresh_token_value); // The user's account name (i.e. their email address). std::string login; // Token delegating authority to us to act as the user. std::string refresh_token; - - // Credentials identifying the application to OAuth. - OAuthClientInfo client_info; }; // The |auth_failed_callback| is called when authentication fails. @@ -78,10 +74,13 @@ class SignalingConnector // NetworkChangeNotifier::IPAddressObserver interface. virtual void OnIPAddressChanged() OVERRIDE; - // GaiaOAuthClient::Delegate interface. - virtual void OnRefreshTokenResponse(const std::string& user_email, - const std::string& access_token, - int expires_seconds) OVERRIDE; + // gaia::GaiaOAuthClient::Delegate interface. + virtual void OnGetTokensResponse(const std::string& user_email, + const std::string& access_token, + int expires_seconds) OVERRIDE; + virtual void OnRefreshTokenResponse(const std::string& access_token, + int expires_in_seconds) OVERRIDE; + virtual void OnGetUserInfoResponse(const std::string& user_email) OVERRIDE; virtual void OnOAuthError() OVERRIDE; virtual void OnNetworkError(int response_code) OVERRIDE; @@ -98,13 +97,14 @@ class SignalingConnector base::Closure auth_failed_callback_; scoped_ptr<OAuthCredentials> oauth_credentials_; - scoped_ptr<GaiaOAuthClient> gaia_oauth_client_; + scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_; scoped_ptr<DnsBlackholeChecker> dns_blackhole_checker_; // Number of times we tried to connect without success. int reconnect_attempts_; bool refreshing_oauth_token_; + std::string oauth_access_token_; base::Time auth_token_expiry_time_; base::OneShotTimer<SignalingConnector> timer_; |