summaryrefslogtreecommitdiffstats
path: root/base/process_util_win.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 03:25:15 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 03:25:15 +0000
commit176aa48371da91eb98d675d87b4e70c7b26d696f (patch)
tree4c972de6ecd5a54650ab1dc7d421187f5d25834f /base/process_util_win.cc
parent9a3f0ac2899139ace97e399015259d028b4d5704 (diff)
downloadchromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.zip
chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.gz
chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.bz2
Add Terminate() to the Process object, have RenderProcessHost use this to avoid some more Windows specific code.
Move Process and SharedMemory into the base namespace (most changes). Review URL: http://codereview.chromium.org/10895 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_win.cc')
-rw-r--r--base/process_util_win.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index d12f167..d163e30 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -22,7 +22,7 @@ typedef BOOL (WINAPI* HeapSetFn)(HANDLE, HEAP_INFORMATION_CLASS, PVOID, SIZE_T);
} // namespace
-namespace process_util {
+namespace base {
int GetCurrentProcId() {
return ::GetCurrentProcessId();
@@ -329,11 +329,11 @@ bool CleanupProcesses(const std::wstring& executable_name,
int wait_milliseconds,
int exit_code,
const ProcessFilter* filter) {
- bool exited_cleanly =
- process_util::WaitForProcessesToExit(executable_name, wait_milliseconds,
- filter);
+ bool exited_cleanly = WaitForProcessesToExit(executable_name,
+ wait_milliseconds,
+ filter);
if (!exited_cleanly)
- process_util::KillProcesses(executable_name, exit_code, filter);
+ KillProcesses(executable_name, exit_code, filter);
return exited_cleanly;
}
@@ -615,4 +615,4 @@ void RaiseProcessToHighPriority() {
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
}
-} // namespace process_util
+} // namespace base