| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_H_ | 5 #ifndef CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ |
| 6 #define CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ | 6 #define CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Initialize the platform specific state. | 108 // Initialize the platform specific state. |
| 109 bool InitializeState(); | 109 bool InitializeState(); |
| 110 | 110 |
| 111 // Tear down the platform specific state. | 111 // Tear down the platform specific state. |
| 112 void TearDownState(); | 112 void TearDownState(); |
| 113 | 113 |
| 114 // Initializes the command-line that can be used to autorun the service | 114 // Initializes the command-line that can be used to autorun the service |
| 115 // process. | 115 // process. |
| 116 void CreateAutoRunCommandLine(); | 116 void CreateAutoRunCommandLine(); |
| 117 | 117 |
| 118 #if defined(OS_POSIX) |
| 119 // Platform specific SignalReady handling. |
| 120 bool SignalReadyPlatformSpecific(Task* shutdown_task); |
| 121 #endif // OS_POSIX |
| 122 |
| 118 // An opaque object that maintains state. The actual definition of this is | 123 // An opaque object that maintains state. The actual definition of this is |
| 119 // platform dependent. | 124 // platform dependent. |
| 120 struct StateData; | 125 struct StateData; |
| 121 StateData* state_; | 126 StateData* state_; |
| 122 scoped_ptr<base::SharedMemory> shared_mem_service_data_; | 127 scoped_ptr<base::SharedMemory> shared_mem_service_data_; |
| 123 scoped_ptr<CommandLine> autorun_command_line_; | 128 scoped_ptr<CommandLine> autorun_command_line_; |
| 124 | 129 |
| 125 friend struct DefaultSingletonTraits<ServiceProcessState>; | 130 friend struct DefaultSingletonTraits<ServiceProcessState>; |
| 126 }; | 131 }; |
| 127 | 132 |
| 128 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ | 133 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ |
| OLD | NEW |