diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-08 15:52:45 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-08 15:52:45 +0000 |
commit | a5a00b1dd7a4950de617bb9bb9bc596d1f89965f (patch) | |
tree | bfa6a819deb40647392a5b4db31d26e428eb0e37 /base/process_util.h | |
parent | 152c76a49742732b72d061032979d5b27ca2af28 (diff) | |
download | chromium_src-a5a00b1dd7a4950de617bb9bb9bc596d1f89965f.zip chromium_src-a5a00b1dd7a4950de617bb9bb9bc596d1f89965f.tar.gz chromium_src-a5a00b1dd7a4950de617bb9bb9bc596d1f89965f.tar.bz2 |
Move ProcessEntry and IoCounters inside namespace base.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/1599007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/base/process_util.h b/base/process_util.h index 20f16a7..b9abef0 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -29,6 +29,7 @@ struct kinfo_proc; #include <vector> #include "base/command_line.h" +#include "base/file_descriptor_shuffle.h" #include "base/file_path.h" #include "base/process.h" @@ -40,11 +41,17 @@ struct kinfo_proc; #endif #endif +namespace base { + #if defined(OS_WIN) -typedef PROCESSENTRY32 ProcessEntry; -typedef IO_COUNTERS IoCounters; + +struct ProcessEntry : public PROCESSENTRY32 { +}; +struct IoCounters : public IO_COUNTERS { +}; + #elif defined(OS_POSIX) -// TODO(port): we should not rely on a Win32 structure. + struct ProcessEntry { base::ProcessId pid; base::ProcessId ppid; @@ -60,10 +67,7 @@ struct IoCounters { uint64_t OtherTransferCount; }; -#include "base/file_descriptor_shuffle.h" -#endif - -namespace base { +#endif // defined(OS_POSIX) // A minimalistic but hopefully cross-platform set of exit codes. // Do not change the enumeration values or you will break third-party |