#include "chrome/browser/metrics/desktop_session_duration/chrome_visibility_observer.h"
#include "base/functional/bind.h"
#include "base/memory/singleton.h"
#include "base/metrics/field_trial_params.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
namespace metrics {
ChromeVisibilityObserver::ChromeVisibilityObserver() { … }
ChromeVisibilityObserver::~ChromeVisibilityObserver() { … }
void ChromeVisibilityObserver::SendVisibilityChangeEvent(
bool active,
base::TimeDelta time_ago) { … }
void ChromeVisibilityObserver::CancelVisibilityChange() { … }
void ChromeVisibilityObserver::OnBrowserSetLastActive(Browser* browser) { … }
void ChromeVisibilityObserver::OnBrowserNoLongerActive(Browser* browser) { … }
void ChromeVisibilityObserver::OnBrowserRemoved(Browser* browser) { … }
void ChromeVisibilityObserver::InitVisibilityGapTimeout() { … }
void ChromeVisibilityObserver::SetVisibilityGapTimeoutForTesting(
base::TimeDelta timeout) { … }
}