| // 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_UKM_LOGGER_H_ |
| #define CHROME_BROWSER_CHROMEOS_POWER_ML_USER_ACTIVITY_UKM_LOGGER_H_ |
| |
| #include <map> |
| |
| #include "services/metrics/public/cpp/ukm_source_id.h" |
| |
| namespace chromeos { |
| namespace power { |
| namespace ml { |
| |
| class UserActivityEvent; |
| |
| // Interface to log UserActivityEvent to UKM. |
| class UserActivityUkmLogger { |
| public: |
| virtual ~UserActivityUkmLogger() = default; |
| |
| // 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_UKM_LOGGER_H_ |