diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 20:42:41 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 20:42:41 +0000 |
commit | 7e1117ccfd480267ebda3e64042f01c86e803cd8 (patch) | |
tree | cd91e1c283dcbcf5929676ca14b729094c85e9f1 /base/process_util.h | |
parent | 63a6d39c220dabe7bb663ef24fc70e5288b23b31 (diff) | |
download | chromium_src-7e1117ccfd480267ebda3e64042f01c86e803cd8.zip chromium_src-7e1117ccfd480267ebda3e64042f01c86e803cd8.tar.gz chromium_src-7e1117ccfd480267ebda3e64042f01c86e803cd8.tar.bz2 |
Add additional base::TimeDelta interface for WaitForChildProcess()
It turns out this function also wants a conversion, as it simplifies a bunch
of interfaces used by TestTimeouts.
R=jar@chromium.org
BUG=108171
Review URL: http://codereview.chromium.org/9791052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h index 8a0d02a..c7b7618 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -10,6 +10,7 @@ #pragma once #include "base/basictypes.h" +#include "base/time.h" #if defined(OS_WIN) #include <windows.h> @@ -517,6 +518,8 @@ BASE_EXPORT bool WaitForProcessesToExit( // on Mac and Windows it can be any process. BASE_EXPORT bool WaitForSingleProcess(ProcessHandle handle, int64 wait_milliseconds); +BASE_EXPORT bool WaitForSingleProcess(ProcessHandle handle, + base::TimeDelta wait); // Waits a certain amount of time (can be 0) for all the processes with a given // executable name to exit, then kills off any of them that are still around. |