summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 20:49:16 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 20:49:16 +0000
commit0b100bc8b653af9c1a12794a7508d1269fafc156 (patch)
treed78f750536d7f60cdf460fdbc5bb39f74e9af29c /base/process_util.h
parent36b147bd8298c28e8ba4e7ab529b199aa3cce680 (diff)
downloadchromium_src-0b100bc8b653af9c1a12794a7508d1269fafc156.zip
chromium_src-0b100bc8b653af9c1a12794a7508d1269fafc156.tar.gz
chromium_src-0b100bc8b653af9c1a12794a7508d1269fafc156.tar.bz2
Port parts of base/process_util to Linux.
Review URL: http://codereview.chromium.org/6492 Patch from Paweł Hajdan jr <phajdan.jr@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/base/process_util.h b/base/process_util.h
index e5e3e92..4f33bb0 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -24,7 +24,14 @@ typedef PROCESSENTRY32 ProcessEntry;
typedef IO_COUNTERS IoCounters;
#elif defined(OS_POSIX)
typedef int ProcessEntry;
-typedef int IoCounters; //TODO(awalker): replace with struct when available
+struct IoCounters {
+ unsigned long long ReadOperationCount;
+ unsigned long long WriteOperationCount;
+ unsigned long long OtherOperationCount;
+ unsigned long long ReadTransferCount;
+ unsigned long long WriteTransferCount;
+ unsigned long long OtherTransferCount;
+};
#endif
namespace process_util {