blob: fb68d1bef29bdd3e5bcabe136e55b5eb9da5cbb2 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_POWER_ML_USER_ACTIVITY_LOGGER_DELEGATE_H_
#define CHROME_BROWSER_CHROMEOS_POWER_ML_USER_ACTIVITY_LOGGER_DELEGATE_H_
namespace chromeos {
namespace power {
namespace ml {
class UserActivityEvent;
// Interface to log UserActivityEvent to UKM.
class UserActivityLoggerDelegate {
public:
virtual ~UserActivityLoggerDelegate() = default;
// Get source IDs of all open tabs' URLs. This method should be called when
// user activity logger runs feature extraction to collect source IDs of all
// open tabs' URLs.
virtual void UpdateOpenTabsURLs() = 0;
// Log user activity event.
virtual void LogActivity(const UserActivityEvent& event) = 0;
};
} // namespace ml
} // namespace power
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_POWER_ML_USER_ACTIVITY_LOGGER_DELEGATE_H_