// 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 COMPONENTS_NAMED_SYSTEM_LOCK_LOCK_H_ #define COMPONENTS_NAMED_SYSTEM_LOCK_LOCK_H_ #include <memory> #include <string> #include "build/build_config.h" #if BUILDFLAG(IS_WIN) #include <windows.h> #include "base/win/atl.h" #endif namespace base { class TimeDelta; } // namespace base namespace named_system_lock { class ScopedLockImpl; // ScopedLock represents a held lock. Destroying the ScopedLock releases the // lock. ScopedLock is reentrant on Windows, but not on Mac or Linux. class ScopedLock { … }; } // namespace named_system_lock #endif // COMPONENTS_NAMED_SYSTEM_LOCK_LOCK_H_