#include "third_party/blink/renderer/platform/scheduler/main_thread/find_in_page_budget_pool_controller.h"
#include <memory>
#include "third_party/blink/renderer/platform/scheduler/common/features.h"
#include "third_party/blink/renderer/platform/scheduler/common/task_priority.h"
#include "third_party/blink/renderer/platform/scheduler/main_thread/frame_scheduler_impl.h"
#include "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_scheduler_impl.h"
namespace blink {
namespace scheduler {
namespace {
constexpr base::TimeDelta kFindInPageMaxBudget = …;
const double kFindInPageBudgetRecoveryRate = …;
}
const TaskPriority
FindInPageBudgetPoolController::kFindInPageBudgetNotExhaustedPriority;
const TaskPriority
FindInPageBudgetPoolController::kFindInPageBudgetExhaustedPriority;
FindInPageBudgetPoolController::FindInPageBudgetPoolController(
MainThreadSchedulerImpl* scheduler)
: … { … }
FindInPageBudgetPoolController::~FindInPageBudgetPoolController() = default;
void FindInPageBudgetPoolController::OnTaskCompleted(
MainThreadTaskQueue* queue,
TaskQueue::TaskTiming* task_timing) { … }
}
}