#include "chrome/browser/page_load_metrics/observers/chrome_gws_abandoned_page_load_metrics_observer.h"
#include <string>
#include "base/time/time.h"
#include "chrome/browser/browser_process.h"
#include "services/metrics/public/cpp/metrics_utils.h"
#include "services/network/public/cpp/network_quality_tracker.h"
namespace internal {
const char kSuffixRTTUnknown[] = …;
const char kSuffixRTTBelow200[] = …;
const char kSuffixRTT200to450[] = …;
const char kSuffixRTTAbove450[] = …;
}
const char* ChromeGWSAbandonedPageLoadMetricsObserver::GetSuffixForRTT(
std::optional<base::TimeDelta> rtt) { … }
ChromeGWSAbandonedPageLoadMetricsObserver::
ChromeGWSAbandonedPageLoadMetricsObserver() = default;
ChromeGWSAbandonedPageLoadMetricsObserver::
~ChromeGWSAbandonedPageLoadMetricsObserver() = default;
std::vector<std::string>
ChromeGWSAbandonedPageLoadMetricsObserver::GetAdditionalSuffixes() const { … }
void ChromeGWSAbandonedPageLoadMetricsObserver::AddSRPMetricsToUKMIfNeeded(
ukm::builders::AbandonedSRPNavigation& builder) { … }