#include "third_party/blink/renderer/core/content_capture/content_capture_task.h"
#include <cmath>
#include "base/auto_reset.h"
#include "base/feature_list.h"
#include "cc/trees/layer_tree_host.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/web/web_content_capture_client.h"
#include "third_party/blink/public/web/web_content_holder.h"
#include "third_party/blink/renderer/core/dom/dom_node_ids.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame_client.h"
#include "third_party/blink/renderer/core/layout/layout_text.h"
#include "third_party/blink/renderer/core/paint/paint_layer.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread_scheduler.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
ContentCaptureTask::TaskDelay::TaskDelay(
const base::TimeDelta& task_initial_delay)
: … { … }
base::TimeDelta ContentCaptureTask::TaskDelay::ResetAndGetInitialDelay() { … }
base::TimeDelta ContentCaptureTask::TaskDelay::GetNextTaskDelay() const { … }
void ContentCaptureTask::TaskDelay::IncreaseDelayExponent() { … }
ContentCaptureTask::ContentCaptureTask(LocalFrame& local_frame_root,
TaskSession& task_session)
: … { … }
ContentCaptureTask::~ContentCaptureTask() = default;
void ContentCaptureTask::Shutdown() { … }
bool ContentCaptureTask::CaptureContent(Vector<cc::NodeInfo>& data) { … }
bool ContentCaptureTask::CaptureContent() { … }
void ContentCaptureTask::SendContent(
TaskSession::DocumentSession& doc_session) { … }
WebContentCaptureClient* ContentCaptureTask::GetWebContentCaptureClient(
const Document& document) { … }
bool ContentCaptureTask::ProcessSession() { … }
bool ContentCaptureTask::ProcessDocumentSession(
TaskSession::DocumentSession& doc_session) { … }
bool ContentCaptureTask::RunInternal() { … }
void ContentCaptureTask::Run(TimerBase*) { … }
base::TimeDelta ContentCaptureTask::GetAndAdjustDelay(ScheduleReason reason) { … }
void ContentCaptureTask::ScheduleInternal(ScheduleReason reason) { … }
void ContentCaptureTask::Schedule(ScheduleReason reason) { … }
bool ContentCaptureTask::ShouldPause() { … }
void ContentCaptureTask::CancelTask() { … }
void ContentCaptureTask::ClearDocumentSessionsForTesting() { … }
base::TimeDelta ContentCaptureTask::GetTaskNextFireIntervalForTesting() const { … }
void ContentCaptureTask::CancelTaskForTesting() { … }
void ContentCaptureTask::Trace(Visitor* visitor) const { … }
}