chromium/third_party/blink/renderer/core/editing/finder/async_find_buffer.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/editing/finder/async_find_buffer.h"

#include "base/metrics/histogram_macros.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/finder/find_buffer.h"

namespace blink {

namespace {
// Indicates how long FindBuffer task should run before pausing the work.
constexpr base::TimeDelta kFindBufferTaskTimeout =;

// Global static to allow tests to override the timeout.
base::TimeDelta g_find_buffer_timeout =;
}  // namespace

// static
std::unique_ptr<base::AutoReset<base::TimeDelta>>
AsyncFindBuffer::OverrideTimeoutForTesting(base::TimeDelta timeout_override) {}

void AsyncFindBuffer::FindMatchInRange(RangeInFlatTree* search_range,
                                       String search_text,
                                       FindOptions options,
                                       Callback completeCallback) {}

void AsyncFindBuffer::Cancel() {}

void AsyncFindBuffer::Run(RangeInFlatTree* search_range,
                          String search_text,
                          FindOptions options,
                          Callback completeCallback) {}

void AsyncFindBuffer::NextIteration(RangeInFlatTree* search_range,
                                    String search_text,
                                    FindOptions options,
                                    Callback completeCallback) {}

}  // namespace blink