Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Side by Side Diff: content/browser/child_process_launcher.h

Issue 22750002: Move AlterEnvironment to base/environment.h, implement on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 26 matching lines...) Expand all
81 class Context; 81 class Context;
82 82
83 scoped_refptr<Context> context_; 83 scoped_refptr<Context> context_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); 85 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher);
86 }; 86 };
87 87
88 } // namespace content 88 } // namespace content
89 89
90 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ 90 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698