#include "remoting/base/oauth_token_getter_proxy.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread_checker.h"
namespace remoting {
namespace {
void ResolveCallback(
OAuthTokenGetter::TokenCallback on_access_token,
scoped_refptr<base::SequencedTaskRunner> original_task_runner,
OAuthTokenGetter::Status status,
const std::string& user_email,
const std::string& access_token) { … }
}
OAuthTokenGetterProxy::OAuthTokenGetterProxy(
base::WeakPtr<OAuthTokenGetter> token_getter,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
OAuthTokenGetterProxy::OAuthTokenGetterProxy(
base::WeakPtr<OAuthTokenGetter> token_getter)
: … { … }
OAuthTokenGetterProxy::~OAuthTokenGetterProxy() = default;
void OAuthTokenGetterProxy::CallWithToken(
OAuthTokenGetter::TokenCallback on_access_token) { … }
void OAuthTokenGetterProxy::InvalidateCache() { … }
}