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

Unified Diff: remoting/host/signaling_connector.h

Issue 10378110: Verify that xmpp_login specified in the config matches auth token. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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/remoting_me2me_host.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 f73f744d6ec590215f39785350dd9c055a75fbcb..a03ae647c9ac89864959b6cd7c4135cabdca3609 100644
--- a/remoting/host/signaling_connector.h
+++ b/remoting/host/signaling_connector.h
@@ -50,13 +50,14 @@ class SignalingConnector
OAuthClientInfo client_info;
};
- // OAuth token is updated refreshed when |oauth_credentials| is
- // not NULL.
- SignalingConnector(XmppSignalStrategy* signal_strategy);
+ // The |auth_failed_callback| is called when authentication fails.
+ SignalingConnector(XmppSignalStrategy* signal_strategy,
+ const base::Closure& auth_failed_callback);
virtual ~SignalingConnector();
+ // May be called immediately after the constructor to enable OAuth
+ // access token updating.
void EnableOAuth(scoped_ptr<OAuthCredentials> oauth_credentials,
- const base::Closure& oauth_failed_callback,
net::URLRequestContextGetter* url_context);
// SignalStrategy::Listener interface.
@@ -83,9 +84,9 @@ class SignalingConnector
void RefreshOAuthToken();
XmppSignalStrategy* signal_strategy_;
+ base::Closure auth_failed_callback_;
scoped_ptr<OAuthCredentials> oauth_credentials_;
- base::Closure oauth_failed_callback_;
scoped_ptr<GaiaOAuthClient> gaia_oauth_client_;
// Number of times we tried to connect without success.
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698