#include "components/offline_pages/core/snapshot_controller.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "components/offline_pages/core/offline_page_feature.h"
namespace {
const int64_t kDefaultDelayAfterDocumentAvailableMs = …;
const int64_t kDelayAfterDocumentOnLoadCompletedMsForeground = …;
const int64_t kDelayForTests = …;
}
namespace offline_pages {
SnapshotController::SnapshotController(
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
SnapshotController::Client* client)
: … { … }
SnapshotController::~SnapshotController() { … }
void SnapshotController::Reset() { … }
void SnapshotController::Stop() { … }
void SnapshotController::PendingSnapshotCompleted() { … }
void SnapshotController::PrimaryMainDocumentElementAvailable() { … }
void SnapshotController::DocumentOnLoadCompletedInPrimaryMainFrame() { … }
void SnapshotController::MaybeStartSnapshot(PageQuality updated_page_quality) { … }
void SnapshotController::MaybeStartSnapshotThenStop() { … }
int64_t SnapshotController::GetDelayAfterDocumentAvailableForTest() { … }
int64_t SnapshotController::GetDelayAfterDocumentOnLoadCompletedForTest() { … }
}