| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" | 
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" | 
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 31   // Launches the process asynchronously, calling the client when the result is | 31   // Launches the process asynchronously, calling the client when the result is | 
| 32   // ready.  Deleting this object before the process is created is safe, since | 32   // ready.  Deleting this object before the process is created is safe, since | 
| 33   // the callback won't be called.  If the process is still running by the time | 33   // the callback won't be called.  If the process is still running by the time | 
| 34   // this object destructs, it will be terminated. | 34   // this object destructs, it will be terminated. | 
| 35   // Takes ownership of cmd_line. | 35   // Takes ownership of cmd_line. | 
| 36   ChildProcessLauncher( | 36   ChildProcessLauncher( | 
| 37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) | 
| 38       const FilePath& exposed_dir, | 38       const FilePath& exposed_dir, | 
| 39 #elif defined(OS_POSIX) | 39 #elif defined(OS_POSIX) | 
| 40       bool use_zygote, | 40       bool use_zygote, | 
| 41       const base::environment_vector& environ, | 41       const base::EnvironmentVector& environ, | 
| 42       int ipcfd, | 42       int ipcfd, | 
| 43 #endif | 43 #endif | 
| 44       CommandLine* cmd_line, | 44       CommandLine* cmd_line, | 
| 45       Client* client); | 45       Client* client); | 
| 46   ~ChildProcessLauncher(); | 46   ~ChildProcessLauncher(); | 
| 47 | 47 | 
| 48   // True if the process is being launched and so the handle isn't available. | 48   // True if the process is being launched and so the handle isn't available. | 
| 49   bool IsStarting(); | 49   bool IsStarting(); | 
| 50 | 50 | 
| 51   // Getter for the process handle.  Only call after the process has started. | 51   // Getter for the process handle.  Only call after the process has started. | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 67 | 67 | 
| 68  private: | 68  private: | 
| 69   class Context; | 69   class Context; | 
| 70 | 70 | 
| 71   scoped_refptr<Context> context_; | 71   scoped_refptr<Context> context_; | 
| 72 | 72 | 
| 73   DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); | 73   DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); | 
| 74 }; | 74 }; | 
| 75 | 75 | 
| 76 #endif  // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 76 #endif  // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 
| OLD | NEW | 
|---|