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

Unified Diff: remoting/host/signaling_connector.h

Issue 10116040: Remoting daemon process to support unofficial client ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed comments Created 8 years, 8 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
Index: remoting/host/signaling_connector.h
diff --git a/remoting/host/signaling_connector.h b/remoting/host/signaling_connector.h
index 227bf71fc32c67a25fb469351d1dc6622354cbd5..8b39ffd37f2b6d9760e8a2af28dfa9a480349194 100644
--- a/remoting/host/signaling_connector.h
+++ b/remoting/host/signaling_connector.h
@@ -31,11 +31,21 @@ class SignalingConnector
public net::NetworkChangeNotifier::IPAddressObserver,
public 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 std::string& refresh_token_value,
+ const OAuthClientInfo& client_info);
+
+ // ID to identify the user.
Wez 2012/04/20 22:29:46 nit: Suggest "The user's account name (i.e. their
std::string login;
+
+ // Secret to authenticate the user.
std::string refresh_token;
Wez 2012/04/20 22:29:46 nit: Suggest "Token delegating authority to us to
+
+ // ID and secret to identify the client.
Wez 2012/04/20 22:29:46 nit: Suggest "Credentials identifying the applicat
+ OAuthClientInfo client_info;
};
// OAuth token is updated refreshed when |oauth_credentials| is

Powered by Google App Engine
This is Rietveld 408576698