#include "services/network/upload_progress_tracker.h"
#include "base/check.h"
#include "base/task/sequenced_task_runner.h"
#include "net/base/upload_progress.h"
#include "net/url_request/url_request.h"
namespace network {
namespace {
constexpr base::TimeDelta kUploadProgressInterval = …;
}
UploadProgressTracker::UploadProgressTracker(
const base::Location& location,
UploadProgressReportCallback report_progress,
net::URLRequest* request,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
UploadProgressTracker::~UploadProgressTracker() { … }
void UploadProgressTracker::OnAckReceived() { … }
void UploadProgressTracker::OnUploadCompleted() { … }
base::TimeDelta UploadProgressTracker::GetUploadProgressIntervalForTesting() { … }
base::TimeTicks UploadProgressTracker::GetCurrentTime() const { … }
net::UploadProgress UploadProgressTracker::GetUploadProgress() const { … }
void UploadProgressTracker::ReportUploadProgressIfNeeded() { … }
}