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_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" |
11 #include "base/callback.h" | 11 #include "base/callback_forward.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/process.h" | 13 #include "base/process.h" |
14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
15 #include "ipc/ipc_channel_handle.h" | 15 #include "ipc/ipc_channel_handle.h" |
16 | 16 |
17 class CommandLine; | 17 class CommandLine; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class MessageLoopProxy; | 20 class MessageLoopProxy; |
awong
2011/11/28 18:42:21
While we're here, can we un-indent this?
erikwright (departed)
2011/11/28 19:12:19
Done.
| |
21 } | 21 } |
22 | 22 |
23 // Return the IPC channel to connect to the service process. | 23 // Return the IPC channel to connect to the service process. |
24 IPC::ChannelHandle GetServiceProcessChannel(); | 24 IPC::ChannelHandle GetServiceProcessChannel(); |
25 | 25 |
26 #if !defined(OS_MACOSX) | 26 #if !defined(OS_MACOSX) |
27 // Return a name that is scoped to this instance of the service process. We | 27 // Return a name that is scoped to this instance of the service process. We |
28 // use the user-data-dir as a scoping prefix. | 28 // use the user-data-dir as a scoping prefix. |
29 std::string GetServiceProcessScopedName(const std::string& append_str); | 29 std::string GetServiceProcessScopedName(const std::string& append_str); |
30 | 30 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 | 113 |
114 // An opaque object that maintains state. The actual definition of this is | 114 // An opaque object that maintains state. The actual definition of this is |
115 // platform dependent. | 115 // platform dependent. |
116 struct StateData; | 116 struct StateData; |
117 StateData* state_; | 117 StateData* state_; |
118 scoped_ptr<base::SharedMemory> shared_mem_service_data_; | 118 scoped_ptr<base::SharedMemory> shared_mem_service_data_; |
119 scoped_ptr<CommandLine> autorun_command_line_; | 119 scoped_ptr<CommandLine> autorun_command_line_; |
120 }; | 120 }; |
121 | 121 |
122 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ | 122 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ |
OLD | NEW |