chromium/chrome/browser/predictors/loading_stats_collector.h

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

#ifndef CHROME_BROWSER_PREDICTORS_LOADING_STATS_COLLECTOR_H_
#define CHROME_BROWSER_PREDICTORS_LOADING_STATS_COLLECTOR_H_

#include <map>
#include <memory>
#include <optional>
#include <utility>

#include "base/memory/raw_ptr.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "url/gurl.h"

namespace predictors {

struct OptimizationGuidePrediction;
class ResourcePrefetchPredictor;
struct PreconnectStats;
struct LoadingPredictorConfig;
struct PageRequestSummary;

namespace internal {
constexpr char kResourcePrefetchPredictorRedirectStatusHistogram[] =;
constexpr char kLoadingPredictorPreconnectLearningPrecision[] =;
constexpr char kLoadingPredictorPreconnectLearningRecall[] =;
constexpr char kLoadingPredictorPreconnectLearningCount[] =;
constexpr char kLoadingPredictorPreconnectLearningRedirectStatus[] =;
constexpr char kLoadingPredictorPreresolveHitsPercentage[] =;
constexpr char kLoadingPredictorPreconnectHitsPercentage[] =;
constexpr char kLoadingPredictorPreresolveCount[] =;
constexpr char kLoadingPredictorPreconnectCount[] =;
}  // namespace internal

// Accumulates data from different speculative actions and collates this data
// with a summary of actual page load into statistical reports.
class LoadingStatsCollector {};

}  // namespace predictors

#endif  // CHROME_BROWSER_PREDICTORS_LOADING_STATS_COLLECTOR_H_