OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_ | 5 #ifndef CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_ |
6 #define CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_ | 6 #define CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_ |
7 | 7 |
8 #include "chrome/common/service_process_util.h" | 8 #include "chrome/common/service_process_util.h" |
9 | 9 |
10 #include <signal.h> | 10 #include <signal.h> |
11 | 11 |
12 #include "base/basictypes.h" | |
13 #include "base/callback.h" | 12 #include "base/callback.h" |
14 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "build/build_config.h" |
16 | 16 |
17 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 17 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
18 #include "chrome/common/multi_process_lock.h" | 18 #include "chrome/common/multi_process_lock.h" |
19 MultiProcessLock* TakeServiceRunningLock(bool waiting); | 19 MultiProcessLock* TakeServiceRunningLock(bool waiting); |
20 #endif | 20 #endif |
21 | 21 |
22 #if defined(OS_MACOSX) | 22 #if defined(OS_MACOSX) |
23 #include "base/files/file_path_watcher.h" | 23 #include "base/files/file_path_watcher.h" |
24 #include "base/mac/scoped_cftyperef.h" | 24 #include "base/mac/scoped_cftyperef.h" |
25 | 25 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 int sockets[2]; | 79 int sockets[2]; |
80 struct sigaction old_action; | 80 struct sigaction old_action; |
81 bool set_action; | 81 bool set_action; |
82 | 82 |
83 protected: | 83 protected: |
84 friend class base::RefCountedThreadSafe<ServiceProcessState::StateData>; | 84 friend class base::RefCountedThreadSafe<ServiceProcessState::StateData>; |
85 virtual ~StateData(); | 85 virtual ~StateData(); |
86 }; | 86 }; |
87 | 87 |
88 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_ | 88 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_ |
OLD | NEW |