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

Side by Side Diff: chrome/common/service_process_util_posix.h

Issue 6793020: Move FilePathWatcher to base/files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use ::operator<< Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/service_process_util_mac.mm ('k') | content/browser/plugin_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "service_process_util.h" 8 #include "service_process_util.h"
9 9
10 #include <signal.h> 10 #include <signal.h>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/message_pump_libevent.h" 15 #include "base/message_pump_libevent.h"
16 16
17 #if defined(OS_LINUX) 17 #if defined(OS_LINUX)
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 // OS_LINUX 20 #endif // OS_LINUX
21 21
22 #if defined(OS_MACOSX) 22 #if defined(OS_MACOSX)
23 #include "base/files/file_path_watcher.h"
23 #include "base/mac/scoped_cftyperef.h" 24 #include "base/mac/scoped_cftyperef.h"
24 #include "content/common/file_path_watcher/file_path_watcher.h"
25 25
26 class CommandLine; 26 class CommandLine;
27 CFDictionaryRef CreateServiceProcessLaunchdPlist(CommandLine* cmd_line, 27 CFDictionaryRef CreateServiceProcessLaunchdPlist(CommandLine* cmd_line,
28 bool for_auto_launch); 28 bool for_auto_launch);
29 #endif // OS_MACOSX 29 #endif // OS_MACOSX
30 30
31 namespace base { 31 namespace base {
32 class WaitableEvent; 32 class WaitableEvent;
33 } 33 }
34 34
(...skipping 28 matching lines...) Expand all
63 void SignalReady(base::WaitableEvent* signal, bool* success); 63 void SignalReady(base::WaitableEvent* signal, bool* success);
64 64
65 65
66 // TODO(jhawkins): Either make this a class or rename these public member 66 // TODO(jhawkins): Either make this a class or rename these public member
67 // variables to remove the trailing underscore. 67 // variables to remove the trailing underscore.
68 68
69 #if defined(OS_MACOSX) 69 #if defined(OS_MACOSX)
70 bool WatchExecutable(); 70 bool WatchExecutable();
71 71
72 base::mac::ScopedCFTypeRef<CFDictionaryRef> launchd_conf_; 72 base::mac::ScopedCFTypeRef<CFDictionaryRef> launchd_conf_;
73 FilePathWatcher executable_watcher_; 73 base::files::FilePathWatcher executable_watcher_;
74 #endif // OS_MACOSX 74 #endif // OS_MACOSX
75 #if defined(OS_LINUX) 75 #if defined(OS_LINUX)
76 scoped_ptr<MultiProcessLock> initializing_lock_; 76 scoped_ptr<MultiProcessLock> initializing_lock_;
77 scoped_ptr<MultiProcessLock> running_lock_; 77 scoped_ptr<MultiProcessLock> running_lock_;
78 #endif // OS_LINUX 78 #endif // OS_LINUX
79 scoped_ptr<ServiceProcessShutdownMonitor> shut_down_monitor_; 79 scoped_ptr<ServiceProcessShutdownMonitor> shut_down_monitor_;
80 base::MessagePumpLibevent::FileDescriptorWatcher watcher_; 80 base::MessagePumpLibevent::FileDescriptorWatcher watcher_;
81 int sockets_[2]; 81 int sockets_[2];
82 struct sigaction old_action_; 82 struct sigaction old_action_;
83 bool set_action_; 83 bool set_action_;
84 84
85 protected: 85 protected:
86 friend class base::RefCountedThreadSafe<ServiceProcessState::StateData>; 86 friend class base::RefCountedThreadSafe<ServiceProcessState::StateData>;
87 virtual ~StateData(); 87 virtual ~StateData();
88 }; 88 };
89 89
90 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_ 90 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_
OLDNEW
« no previous file with comments | « chrome/common/service_process_util_mac.mm ('k') | content/browser/plugin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698