1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_TOOLS_CRASH_SERVICE_CAPS_PROCESS_SINGLETON_WIN_H_
6 #define CHROME_TOOLS_CRASH_SERVICE_CAPS_PROCESS_SINGLETON_WIN_H_
10 #include "base/macros.h"
13 // Uses a named mutex to make sure that only one process of
14 // with this particular version is launched.
15 class ProcessSingleton
{
19 bool other_instance() const { return mutex_
== NULL
; }
24 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton
);
29 #endif // CHROME_TOOLS_CRASH_SERVICE_CAPS_PROCESS_SINGLETON_WIN_H_