// Copyright 2021 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_METRICS_TAB_STATS_TAB_STATS_OBSERVER_H_ #define CHROME_BROWSER_METRICS_TAB_STATS_TAB_STATS_OBSERVER_H_ #include "base/observer_list_types.h" #include "content/public/browser/visibility.h" namespace content { class WebContents; } // namespace content namespace metrics { // Defines an interface for a class used to handle tab and window related stats. // Handling the events can be either storing them for logging purposes, // forwarding them to another class or taking reactive measures when certain // criteria are met. Subclasses do not have to react to all events so default // noop functions are provided. class TabStatsObserver : public base::CheckedObserver { … }; } // namespace metrics #endif // CHROME_BROWSER_METRICS_TAB_STATS_TAB_STATS_OBSERVER_H_