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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h

Issue 792193003: Implement CryptAuthAccessTokenFetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 6 years 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: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h
diff --git a/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h b/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h
index 04dbe2f5e43f0c9b3c18b8cd44ebd3570c97a9d6..6287dfeabd21e7800072a735e72b2cf831eaa1d0 100644
--- a/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h
+++ b/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h
@@ -5,10 +5,15 @@
#ifndef COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ACCESS_TOKEN_FETCHER_H
#define COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ACCESS_TOKEN_FETCHER_H
+#include <string>
+
+#include "base/callback_forward.h"
+
namespace proximity_auth {
// Simple interface for fetching the OAuth2 access token that authorizes
-// CryptAuth API calls.
+// CryptAuth API calls. Do not reuse this after calling FetchAccessToken();
+// instead, create a new instance.
class CryptAuthAccessTokenFetcher {
public:
virtual ~CryptAuthAccessTokenFetcher() {}
« no previous file with comments | « components/proximity_auth/cryptauth/BUILD.gn ('k') | components/proximity_auth/cryptauth/cryptauth_account_token_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698