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

Unified Diff: remoting/host/oauth_token_getter.h

Issue 719983002: Reporting of policy errors via host-offline-reason: part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hor-nohoststatussender
Patch Set: Rebasing... Created 5 years, 11 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/mock_callback.h ('k') | remoting/host/oauth_token_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/oauth_token_getter.h
diff --git a/remoting/host/oauth_token_getter.h b/remoting/host/oauth_token_getter.h
index 20b6079607a4221cad3ff0a8c5700b26355495d6..6398532f277e8ed7cfc3542a8cfe69c5834d4754 100644
--- a/remoting/host/oauth_token_getter.h
+++ b/remoting/host/oauth_token_getter.h
@@ -42,6 +42,9 @@ class OAuthTokenGetter :
// This structure contains information required to perform
// authentication to OAuth2.
struct OAuthCredentials {
+ // |is_service_account| should be True if the OAuth refresh token is for a
+ // service account, False for a user account, to allow the correct client-ID
+ // to be used.
OAuthCredentials(const std::string& login,
const std::string& refresh_token,
bool is_service_account);
@@ -56,10 +59,10 @@ class OAuthTokenGetter :
bool is_service_account;
};
- OAuthTokenGetter(
- scoped_ptr<OAuthCredentials> oauth_credentials,
- scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
- bool auto_refresh);
+ OAuthTokenGetter(scoped_ptr<OAuthCredentials> oauth_credentials,
+ const scoped_refptr<net::URLRequestContextGetter>&
+ url_request_context_getter,
+ bool auto_refresh);
~OAuthTokenGetter() override;
// Call |on_access_token| with an access token, or the failure status.
« no previous file with comments | « remoting/host/mock_callback.h ('k') | remoting/host/oauth_token_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698