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

ash / public / cpp / session / scoped_screen_lock_blocker.h [blame]

// Copyright 2023 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_PUBLIC_CPP_SESSION_SCOPED_SCREEN_LOCK_BLOCKER_H_
#define ASH_PUBLIC_CPP_SESSION_SCOPED_SCREEN_LOCK_BLOCKER_H_

namespace ash {

// Scoped object to temporarily disable the screen lock.
class ScopedScreenLockBlocker {
 public:
  virtual ~ScopedScreenLockBlocker() = default;

  ScopedScreenLockBlocker(const ScopedScreenLockBlocker&) = delete;
  ScopedScreenLockBlocker& operator=(const ScopedScreenLockBlocker&) = delete;

 protected:
  ScopedScreenLockBlocker() = default;
};

}  // namespace ash

#endif  // ASH_PUBLIC_CPP_SESSION_SCOPED_SCREEN_LOCK_BLOCKER_H_