chromium/components/offline_pages/core/snapshot_controller.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {
// Default delay, in milliseconds, between the main document parsed event and
// snapshot. Note: this snapshot might not occur if the OnLoad event and
// OnLoad delay elapses first to trigger a final snapshot.
const int64_t kDefaultDelayAfterDocumentAvailableMs =;

// Default delay, in milliseconds, between the main document OnLoad event and
// snapshot.
const int64_t kDelayAfterDocumentOnLoadCompletedMsForeground =;

// Delay for testing to keep polling times reasonable.
const int64_t kDelayForTests =;

}  // namespace

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() {}

}  // namespace offline_pages