| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ |
| 6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Launches the process asynchronously, calling the client when the result is | 34 // Launches the process asynchronously, calling the client when the result is |
| 35 // ready. Deleting this object before the process is created is safe, since | 35 // ready. Deleting this object before the process is created is safe, since |
| 36 // the callback won't be called. If the process is still running by the time | 36 // the callback won't be called. If the process is still running by the time |
| 37 // this object destructs, it will be terminated. | 37 // this object destructs, it will be terminated. |
| 38 // Takes ownership of cmd_line. | 38 // Takes ownership of cmd_line. |
| 39 ChildProcessLauncher( | 39 ChildProcessLauncher( |
| 40 #if defined(OS_WIN) | 40 #if defined(OS_WIN) |
| 41 SandboxedProcessLauncherDelegate* delegate, | 41 SandboxedProcessLauncherDelegate* delegate, |
| 42 #elif defined(OS_POSIX) | 42 #elif defined(OS_POSIX) |
| 43 bool use_zygote, | 43 bool use_zygote, |
| 44 const base::EnvironmentVector& environ, | 44 const base::EnvironmentMap& environ, |
| 45 int ipcfd, | 45 int ipcfd, |
| 46 #endif | 46 #endif |
| 47 CommandLine* cmd_line, | 47 CommandLine* cmd_line, |
| 48 int child_process_id, | 48 int child_process_id, |
| 49 Client* client); | 49 Client* client); |
| 50 ~ChildProcessLauncher(); | 50 ~ChildProcessLauncher(); |
| 51 | 51 |
| 52 // True if the process is being launched and so the handle isn't available. | 52 // True if the process is being launched and so the handle isn't available. |
| 53 bool IsStarting(); | 53 bool IsStarting(); |
| 54 | 54 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 76 class Context; | 76 class Context; |
| 77 | 77 |
| 78 scoped_refptr<Context> context_; | 78 scoped_refptr<Context> context_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); | 80 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace content | 83 } // namespace content |
| 84 | 84 |
| 85 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 85 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ |
| OLD | NEW |