1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27

ash / system / night_light / night_light_metrics_recorder.h [blame]

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_SYSTEM_NIGHT_LIGHT_NIGHT_LIGHT_METRICS_RECORDER_H_
#define ASH_SYSTEM_NIGHT_LIGHT_NIGHT_LIGHT_METRICS_RECORDER_H_

#include "ash/public/cpp/session/session_observer.h"

namespace ash {

// This class is used to record Night Light metrics.
class NightLightMetricsRecorder : public SessionObserver {
 public:
  NightLightMetricsRecorder();
  NightLightMetricsRecorder(const NightLightMetricsRecorder&) = delete;
  NightLightMetricsRecorder& operator=(const NightLightMetricsRecorder&) =
      delete;
  ~NightLightMetricsRecorder() override;

  // SessionObserver:
  void OnFirstSessionStarted() override;
};

}  // namespace ash

#endif  // ASH_SYSTEM_NIGHT_LIGHT_NIGHT_LIGHT_METRICS_RECORDER_H_