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

Side by Side Diff: base/process/launch.h

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « base/mac/launch_services_util.h ('k') | base/test/launcher/test_launcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file contains functions for launching subprocesses. 5 // This file contains functions for launching subprocesses.
6 6
7 #ifndef BASE_PROCESS_LAUNCH_H_ 7 #ifndef BASE_PROCESS_LAUNCH_H_
8 #define BASE_PROCESS_LAUNCH_H_ 8 #define BASE_PROCESS_LAUNCH_H_
9 9
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/base_export.h" 14 #include "base/base_export.h"
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/environment.h" 16 #include "base/environment.h"
17 #include "base/process/process_handle.h" 17 #include "base/process/process_handle.h"
18 #include "base/strings/string_piece.h" 18 #include "base/strings/string_piece.h"
19 19
20 #if defined(OS_POSIX) 20 #if defined(OS_POSIX)
21 #include "base/posix/file_descriptor_shuffle.h" 21 #include "base/posix/file_descriptor_shuffle.h"
22 #elif defined(OS_WIN) 22 #elif defined(OS_WIN)
23 #include <windows.h> 23 #include <windows.h>
24 #include "base/win/scoped_handle.h" 24 #include "base/win/scoped_handle.h"
25 #endif 25 #endif
26 26
27 namespace base {
28
27 class CommandLine; 29 class CommandLine;
28 30
29 namespace base {
30
31 #if defined(OS_WIN) 31 #if defined(OS_WIN)
32 typedef std::vector<HANDLE> HandlesToInheritVector; 32 typedef std::vector<HANDLE> HandlesToInheritVector;
33 #endif 33 #endif
34 // TODO(viettrungluu): Only define this on POSIX? 34 // TODO(viettrungluu): Only define this on POSIX?
35 typedef std::vector<std::pair<int, int> > FileHandleMappingVector; 35 typedef std::vector<std::pair<int, int> > FileHandleMappingVector;
36 36
37 // Options for launching a subprocess that are passed to LaunchProcess(). 37 // Options for launching a subprocess that are passed to LaunchProcess().
38 // The default constructor constructs the object with default options. 38 // The default constructor constructs the object with default options.
39 struct BASE_EXPORT LaunchOptions { 39 struct BASE_EXPORT LaunchOptions {
40 LaunchOptions(); 40 LaunchOptions();
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // instance running inside the parent. The parent's Breakpad instance should 239 // instance running inside the parent. The parent's Breakpad instance should
240 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler 240 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler
241 // in the child after forking will restore the standard exception handler. 241 // in the child after forking will restore the standard exception handler.
242 // See http://crbug.com/20371/ for more details. 242 // See http://crbug.com/20371/ for more details.
243 void RestoreDefaultExceptionHandler(); 243 void RestoreDefaultExceptionHandler();
244 #endif // defined(OS_MACOSX) 244 #endif // defined(OS_MACOSX)
245 245
246 } // namespace base 246 } // namespace base
247 247
248 #endif // BASE_PROCESS_LAUNCH_H_ 248 #endif // BASE_PROCESS_LAUNCH_H_
OLDNEW
« no previous file with comments | « base/mac/launch_services_util.h ('k') | base/test/launcher/test_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698