#include "components/safe_browsing/core/browser/safe_browsing_token_fetch_tracker.h"
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/sequence_checker.h"
#include "base/task/sequenced_task_runner.h"
#include "base/time/time.h"
namespace safe_browsing {
SafeBrowsingTokenFetchTracker::SafeBrowsingTokenFetchTracker()
: … { … }
SafeBrowsingTokenFetchTracker::~SafeBrowsingTokenFetchTracker() { … }
int SafeBrowsingTokenFetchTracker::StartTrackingTokenFetch(
SafeBrowsingTokenFetcher::Callback on_token_fetched_callback,
OnTokenFetchTimeoutCallback on_token_fetch_timeout_callback) { … }
void SafeBrowsingTokenFetchTracker::OnTokenFetchComplete(
int request_id,
std::string access_token) { … }
void SafeBrowsingTokenFetchTracker::OnTokenFetchTimeout(
int request_id,
OnTokenFetchTimeoutCallback on_token_fetch_timeout_callback) { … }
void SafeBrowsingTokenFetchTracker::Finish(int request_id,
const std::string& access_token) { … }
}