// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_UNIFIED_CONSENT_MSBB_SESSION_DURATIONS_METRICS_RECORDER_H_ #define COMPONENTS_UNIFIED_CONSENT_MSBB_SESSION_DURATIONS_METRICS_RECORDER_H_ #include <memory> #include "base/time/time.h" #include "base/timer/elapsed_timer.h" #include "components/unified_consent/url_keyed_data_collection_consent_helper.h" class PrefService; namespace unified_consent { // Tracks the active browsing time that the user spends with URL-keyed // anonymized data collection, aka "Make Searches and Browsing Better", // enabled/disabled as a fraction of their total browsing time. class MsbbSessionDurationsMetricsRecorder : public UrlKeyedDataCollectionConsentHelper::Observer { … }; } // namespace unified_consent #endif // COMPONENTS_UNIFIED_CONSENT_MSBB_SESSION_DURATIONS_METRICS_RECORDER_H_