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

Side by Side Diff: base/process_util.h

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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 | « base/process_posix.cc ('k') | base/process_util_linux.cc » ('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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 10
(...skipping 26 matching lines...) Expand all
37 struct IoCounters { 37 struct IoCounters {
38 unsigned long long ReadOperationCount; 38 unsigned long long ReadOperationCount;
39 unsigned long long WriteOperationCount; 39 unsigned long long WriteOperationCount;
40 unsigned long long OtherOperationCount; 40 unsigned long long OtherOperationCount;
41 unsigned long long ReadTransferCount; 41 unsigned long long ReadTransferCount;
42 unsigned long long WriteTransferCount; 42 unsigned long long WriteTransferCount;
43 unsigned long long OtherTransferCount; 43 unsigned long long OtherTransferCount;
44 }; 44 };
45 #endif 45 #endif
46 46
47 namespace process_util { 47 namespace base {
48 48
49 // A minimalistic but hopefully cross-platform set of exit codes. 49 // A minimalistic but hopefully cross-platform set of exit codes.
50 // Do not change the enumeration values or you will break third-party 50 // Do not change the enumeration values or you will break third-party
51 // installers. 51 // installers.
52 enum { 52 enum {
53 PROCESS_END_NORMAL_TERMINATON = 0, 53 PROCESS_END_NORMAL_TERMINATON = 0,
54 PROCESS_END_KILLED_BY_USER = 1, 54 PROCESS_END_KILLED_BY_USER = 1,
55 PROCESS_END_PROCESS_WAS_HUNG = 2 55 PROCESS_END_PROCESS_WAS_HUNG = 2
56 }; 56 };
57 57
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 bool EnableLowFragmentationHeap(); 315 bool EnableLowFragmentationHeap();
316 316
317 // Enable 'terminate on heap corruption' flag. Helps protect against heap 317 // Enable 'terminate on heap corruption' flag. Helps protect against heap
318 // overflow. Has no effect if the OS doesn't provide the necessary facility. 318 // overflow. Has no effect if the OS doesn't provide the necessary facility.
319 void EnableTerminationOnHeapCorruption(); 319 void EnableTerminationOnHeapCorruption();
320 320
321 // If supported on the platform, and the user has sufficent rights, increase 321 // If supported on the platform, and the user has sufficent rights, increase
322 // the current process's scheduling priority to a high priority. 322 // the current process's scheduling priority to a high priority.
323 void RaiseProcessToHighPriority(); 323 void RaiseProcessToHighPriority();
324 324
325 } // namespace process_util 325 } // namespace base
326 326
327 #endif // BASE_PROCESS_UTIL_H_ 327 #endif // BASE_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « base/process_posix.cc ('k') | base/process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698