Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: remoting/host/signaling_connector.h

Issue 11273024: Remove GaiaOauthClient and GaiaUserEmailFetcher from remoting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/setup/host_starter.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/signaling_connector.h
diff --git a/remoting/host/signaling_connector.h b/remoting/host/signaling_connector.h
index 338fd0b4e76217005c0989a64bfb7038581fa7ff..ee175c635c517db95adea2cf9bdbc5d621659d04 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_;
« no previous file with comments | « remoting/host/setup/host_starter.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698