OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ | 5 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ |
6 #define CHROME_BROWSER_PROCESS_SINGLETON_H_ | 6 #define CHROME_BROWSER_PROCESS_SINGLETON_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include <windows.h> | 11 #include <windows.h> |
12 #endif // defined(OS_WIN) | 12 #endif // defined(OS_WIN) |
13 | 13 |
14 #include <set> | 14 #include <set> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/callback.h" | 18 #include "base/callback.h" |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/files/file_path.h" | 20 #include "base/files/file_path.h" |
21 #include "base/logging.h" | 21 #include "base/logging.h" |
22 #include "base/memory/ref_counted.h" | 22 #include "base/memory/ref_counted.h" |
23 #include "base/process.h" | 23 #include "base/process/process.h" |
24 #include "base/threading/non_thread_safe.h" | 24 #include "base/threading/non_thread_safe.h" |
25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
26 | 26 |
27 #if defined(OS_LINUX) || defined(OS_OPENBSD) | 27 #if defined(OS_LINUX) || defined(OS_OPENBSD) |
28 #include "base/files/scoped_temp_dir.h" | 28 #include "base/files/scoped_temp_dir.h" |
29 #endif // defined(OS_LINUX) || defined(OS_OPENBSD) | 29 #endif // defined(OS_LINUX) || defined(OS_OPENBSD) |
30 | 30 |
31 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
32 #include "base/win/message_window.h" | 32 #include "base/win/message_window.h" |
33 #endif // defined(OS_WIN) | 33 #endif // defined(OS_WIN) |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // File descriptor associated with the lockfile, valid between | 176 // File descriptor associated with the lockfile, valid between |
177 // |Create()| and |Cleanup()|. Two instances cannot have a lock on | 177 // |Create()| and |Cleanup()|. Two instances cannot have a lock on |
178 // the same file at the same time. | 178 // the same file at the same time. |
179 int lock_fd_; | 179 int lock_fd_; |
180 #endif | 180 #endif |
181 | 181 |
182 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); | 182 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); |
183 }; | 183 }; |
184 | 184 |
185 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ | 185 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ |
OLD | NEW |