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

Side by Side Diff: base/process_util.h

Issue 5202001: Move definitions to support various unices into its own file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/namespace contains utility functions for enumerating, ending and 5 // This file/namespace contains utility functions for enumerating, ending and
6 // computing statistics of processes. 6 // computing statistics of processes.
7 7
8 #ifndef BASE_PROCESS_UTIL_H_ 8 #ifndef BASE_PROCESS_UTIL_H_
9 #define BASE_PROCESS_UTIL_H_ 9 #define BASE_PROCESS_UTIL_H_
10 #pragma once 10 #pragma once
(...skipping 18 matching lines...) Expand all
29 #endif 29 #endif
30 30
31 #include <list> 31 #include <list>
32 #include <string> 32 #include <string>
33 #include <utility> 33 #include <utility>
34 #include <vector> 34 #include <vector>
35 35
36 #include "base/file_descriptor_shuffle.h" 36 #include "base/file_descriptor_shuffle.h"
37 #include "base/process.h" 37 #include "base/process.h"
38 38
39 #ifndef NAME_MAX // Solaris and some BSDs have no NAME_MAX
40 #ifdef MAXNAMLEN
41 #define NAME_MAX MAXNAMLEN
42 #else
43 #define NAME_MAX 256
44 #endif
45 #endif
46
47 class CommandLine; 39 class CommandLine;
48 class FilePath; 40 class FilePath;
49 41
50 namespace base { 42 namespace base {
51 43
52 #if defined(OS_WIN) 44 #if defined(OS_WIN)
53 struct ProcessEntry : public PROCESSENTRY32 { 45 struct ProcessEntry : public PROCESSENTRY32 {
54 ProcessId pid() const { return th32ProcessID; } 46 ProcessId pid() const { return th32ProcessID; }
55 ProcessId parent_pid() const { return th32ParentProcessID; } 47 ProcessId parent_pid() const { return th32ParentProcessID; }
56 const wchar_t* exe_file() const { return szExeFile; } 48 const wchar_t* exe_file() const { return szExeFile; }
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 // instance running inside the parent. The parent's Breakpad instance should 662 // instance running inside the parent. The parent's Breakpad instance should
671 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler 663 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler
672 // in the child after forking will restore the standard exception handler. 664 // in the child after forking will restore the standard exception handler.
673 // See http://crbug.com/20371/ for more details. 665 // See http://crbug.com/20371/ for more details.
674 void RestoreDefaultExceptionHandler(); 666 void RestoreDefaultExceptionHandler();
675 #endif // defined(OS_MACOSX) 667 #endif // defined(OS_MACOSX)
676 668
677 } // namespace base 669 } // namespace base
678 670
679 #endif // BASE_PROCESS_UTIL_H_ 671 #endif // BASE_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698