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

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

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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.h ('k') | chrome/common/switch_utils.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/callback.h" 13 #include "base/callback.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.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
26 namespace base {
26 class CommandLine; 27 class CommandLine;
27 CFDictionaryRef CreateServiceProcessLaunchdPlist(CommandLine* cmd_line, 28 }
29
30 CFDictionaryRef CreateServiceProcessLaunchdPlist(base::CommandLine* cmd_line,
28 bool for_auto_launch); 31 bool for_auto_launch);
29 #endif // OS_MACOSX 32 #endif // OS_MACOSX
30 33
31 namespace base { 34 namespace base {
32 class WaitableEvent; 35 class WaitableEvent;
33 } 36 }
34 37
35 // Watches for |kTerminateMessage| to be written to the file descriptor it is 38 // Watches for |kTerminateMessage| to be written to the file descriptor it is
36 // watching. When it reads |kTerminateMessage|, it performs |terminate_task_|. 39 // watching. When it reads |kTerminateMessage|, it performs |terminate_task_|.
37 // Used here to monitor the socket listening to g_signal_socket. 40 // Used here to monitor the socket listening to g_signal_socket.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 int sockets_[2]; 83 int sockets_[2];
81 struct sigaction old_action_; 84 struct sigaction old_action_;
82 bool set_action_; 85 bool set_action_;
83 86
84 protected: 87 protected:
85 friend class base::RefCountedThreadSafe<ServiceProcessState::StateData>; 88 friend class base::RefCountedThreadSafe<ServiceProcessState::StateData>;
86 virtual ~StateData(); 89 virtual ~StateData();
87 }; 90 };
88 91
89 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_ 92 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_POSIX_H_
OLDNEW
« no previous file with comments | « chrome/common/service_process_util.h ('k') | chrome/common/switch_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698