#include "third_party/blink/renderer/core/fragment_directive/text_fragment_anchor_metrics.h"
#include "base/check.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/strcat.h"
#include "base/time/default_tick_clock.h"
#include "base/trace_event/trace_event.h"
#include "components/shared_highlighting/core/common/shared_highlighting_metrics.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
namespace blink {
TextFragmentAnchorMetrics::TextFragmentAnchorMetrics(Document* document)
: … { … }
void TextFragmentAnchorMetrics::DidCreateAnchor(int selector_count) { … }
void TextFragmentAnchorMetrics::DidFindMatch() { … }
void TextFragmentAnchorMetrics::DidFindAmbiguousMatch() { … }
void TextFragmentAnchorMetrics::DidInvokeScrollIntoView() { … }
void TextFragmentAnchorMetrics::ReportMetrics() { … }
void TextFragmentAnchorMetrics::Trace(Visitor* visitor) const { … }
TextFragmentAnchorMetrics::TextFragmentAnchorParameters
TextFragmentAnchorMetrics::GetParametersForSelector(
const TextFragmentSelector& selector) { … }
void TextFragmentAnchorMetrics::SetTickClockForTesting(
const base::TickClock* tick_clock) { … }
void TextFragmentAnchorMetrics::SetSearchEngineSource(
bool has_search_engine_source) { … }
std::string TextFragmentAnchorMetrics::GetPrefixForHistograms() const { … }
}