// Copyright 2018 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_RESOURCE_COORDINATOR_USAGE_CLOCK_H_ #define CHROME_BROWSER_RESOURCE_COORDINATOR_USAGE_CLOCK_H_ #include "base/time/time.h" #include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h" namespace resource_coordinator { // A clock that advances when Chrome is in use. // // See metrics::DesktopSessionDurationTracker for how Chrome usage is tracked. // If metrics::DesktopSessionDurationTracker isn't initialized before this, the // clock will advance continuously, regardless of Chrome usage. This avoids // forcing all tests that indirectly depend on this to initialize // metrics::DesktopSessionDurationTracker. class UsageClock : public metrics::DesktopSessionDurationTracker::Observer { … }; } // namespace resource_coordinator #endif // CHROME_BROWSER_RESOURCE_COORDINATOR_USAGE_CLOCK_H_