| 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_util.h" | 10 #include "base/process_util.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // Takes ownership of cmd_line. | 36 // Takes ownership of cmd_line. |
| 37 ChildProcessLauncher( | 37 ChildProcessLauncher( |
| 38 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
| 39 const FilePath& exposed_dir, | 39 const FilePath& exposed_dir, |
| 40 #elif defined(OS_POSIX) | 40 #elif defined(OS_POSIX) |
| 41 bool use_zygote, | 41 bool use_zygote, |
| 42 const base::EnvironmentVector& environ, | 42 const base::EnvironmentVector& environ, |
| 43 int ipcfd, | 43 int ipcfd, |
| 44 #endif | 44 #endif |
| 45 CommandLine* cmd_line, | 45 CommandLine* cmd_line, |
| 46 int child_process_id, |
| 46 Client* client); | 47 Client* client); |
| 47 ~ChildProcessLauncher(); | 48 ~ChildProcessLauncher(); |
| 48 | 49 |
| 49 // True if the process is being launched and so the handle isn't available. | 50 // True if the process is being launched and so the handle isn't available. |
| 50 bool IsStarting(); | 51 bool IsStarting(); |
| 51 | 52 |
| 52 // Getter for the process handle. Only call after the process has started. | 53 // Getter for the process handle. Only call after the process has started. |
| 53 base::ProcessHandle GetHandle(); | 54 base::ProcessHandle GetHandle(); |
| 54 | 55 |
| 55 // Call this when the child process exits to know what happened to | 56 // Call this when the child process exits to know what happened to |
| (...skipping 14 matching lines...) Expand all Loading... |
| 70 class Context; | 71 class Context; |
| 71 | 72 |
| 72 scoped_refptr<Context> context_; | 73 scoped_refptr<Context> context_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); | 75 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace content | 78 } // namespace content |
| 78 | 79 |
| 79 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 80 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ |
| OLD | NEW |