#include <algorithm>
#include "components/unified_consent/consent_throttle.h"
#include "base/functional/bind.h"
#include "base/time/time.h"
#include "components/unified_consent/url_keyed_data_collection_consent_helper.h"
namespace unified_consent {
namespace {
void FulfillRequestCallback(
UrlKeyedDataCollectionConsentHelper::State consent_state,
ConsentThrottle::RequestCallback callback) { … }
}
ConsentThrottle::ConsentThrottle(
std::unique_ptr<unified_consent::UrlKeyedDataCollectionConsentHelper>
consent_helper,
base::TimeDelta timeout)
: … { … }
ConsentThrottle::~ConsentThrottle() = default;
void ConsentThrottle::OnUrlKeyedDataCollectionConsentStateChanged(
UrlKeyedDataCollectionConsentHelper* consent_helper) { … }
void ConsentThrottle::EnqueueRequest(RequestCallback callback) { … }
void ConsentThrottle::OnTimeoutExpired() { … }
}