// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_PREFETCH_METRICS_H_ #define CONTENT_PUBLIC_BROWSER_PREFETCH_METRICS_H_ #include <optional> #include "base/time/time.h" #include "content/common/content_export.h" namespace content { class NavigationHandle; class RenderFrameHost; // Holds metrics related to the prefetches requested by a page load. struct CONTENT_EXPORT PrefetchReferringPageMetrics { … }; // Holds metrics related to page loads that may benefit from prefetches // triggered by speculation rules. struct CONTENT_EXPORT PrefetchServingPageMetrics { … }; } // namespace content #endif // CONTENT_PUBLIC_BROWSER_PREFETCH_METRICS_H_