Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(911)

Side by Side Diff: chrome/tools/crash_service/caps/process_singleton_win.h

Issue 1921973006: Revert of Remove CAPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_TOOLS_CRASH_SERVICE_CAPS_PROCESS_SINGLETON_WIN_H_
6 #define CHROME_TOOLS_CRASH_SERVICE_CAPS_PROCESS_SINGLETON_WIN_H_
7
8 #include <windows.h>
9
10 #include "base/macros.h"
11
12 namespace caps {
13 // Uses a named mutex to make sure that only one process of
14 // with this particular version is launched.
15 class ProcessSingleton {
16 public:
17 ProcessSingleton();
18 ~ProcessSingleton();
19 bool other_instance() const { return mutex_ == NULL; }
20
21 private:
22 HANDLE mutex_;
23
24 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton);
25 };
26
27 } // namespace caps
28
29 #endif // CHROME_TOOLS_CRASH_SERVICE_CAPS_PROCESS_SINGLETON_WIN_H_
30
OLDNEW
« no previous file with comments | « chrome/tools/crash_service/caps/main_win.cc ('k') | chrome/tools/crash_service/caps/process_singleton_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698