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

ash / metrics / unlock_throughput_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_METRICS_UNLOCK_THROUGHPUT_RECORDER_H_
#define ASH_METRICS_UNLOCK_THROUGHPUT_RECORDER_H_

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

namespace ash {

class ASH_EXPORT UnlockThroughputRecorder : public SessionObserver {
 public:
  UnlockThroughputRecorder();
  UnlockThroughputRecorder(const UnlockThroughputRecorder&) = delete;
  UnlockThroughputRecorder& operator=(const UnlockThroughputRecorder&) = delete;
  ~UnlockThroughputRecorder() override;

  // SessionObserver:
  void OnLockStateChanged(bool locked) override;
};

}  // namespace ash

#endif  // ASH_METRICS_UNLOCK_THROUGHPUT_RECORDER_H_