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

Side by Side Diff: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h

Issue 738593002: Introduce CryptAuthClient, a class capable of performing all CryptAuth APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ACCESS_TOKEN_FETCHER_H
6 #define COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ACCESS_TOKEN_FETCHER_H
7
8 namespace proximity_auth {
9
10 // Simple interface for fetching the OAuth2 access token that authorizes
11 // CryptAuth API calls.
12 class CryptAuthAccessTokenFetcher {
13 public:
14 virtual ~CryptAuthAccessTokenFetcher() {}
15
16 // Fetches the access token asynchronously, invoking the callback upon
17 // completion. If the fetch fails, the callback will be invoked with an empty
18 // string.
19 typedef base::Callback<void(const std::string&)> AccessTokenCallback;
20 virtual void FetchAccessToken(const AccessTokenCallback& callback) = 0;
21 };
22
23 } // namespace proximity_auth
24
25 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ACCESS_TOKEN_FETCHER_H
OLDNEW
« no previous file with comments | « components/proximity_auth/cryptauth/BUILD.gn ('k') | components/proximity_auth/cryptauth/cryptauth_api_call_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698