diff options
Diffstat (limited to 'chromium/chrome/common/process_singleton_lock_posix.h')
-rw-r--r-- | chromium/chrome/common/process_singleton_lock_posix.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/chrome/common/process_singleton_lock_posix.h b/chromium/chrome/common/process_singleton_lock_posix.h new file mode 100644 index 00000000000..58584d9950c --- /dev/null +++ b/chromium/chrome/common/process_singleton_lock_posix.h @@ -0,0 +1,20 @@ +// Copyright 2019 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_COMMON_PROCESS_SINGLETON_LOCK_POSIX_H_ +#define CHROME_COMMON_PROCESS_SINGLETON_LOCK_POSIX_H_ + +#include <string> + +#include "base/files/file_path.h" + +// Extract the hostname and pid from the lock symlink. Returns true if the lock +// existed. See ProcessSingleton for additional details. +bool ParseProcessSingletonLock(const base::FilePath& path, + std::string* hostname, + int* pid); + +extern const char kProcessSingletonLockDelimiter; + +#endif // CHROME_COMMON_PROCESS_SINGLETON_LOCK_POSIX_H_ |