diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-08 14:44:44 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-08 14:44:44 +0000 |
commit | 6f2660e7a1db2f25b95fd8b841abb38e313494a7 (patch) | |
tree | 6f615f39c8550a868c837920fb8d21a2b6d7d222 /chrome/test/testing_browser_process.h | |
parent | ab182e455292e448df7b9011763d331c2874792a (diff) | |
download | chromium_src-6f2660e7a1db2f25b95fd8b841abb38e313494a7.zip chromium_src-6f2660e7a1db2f25b95fd8b841abb38e313494a7.tar.gz chromium_src-6f2660e7a1db2f25b95fd8b841abb38e313494a7.tar.bz2 |
Platform cleanup in common/
Review URL: http://codereview.chromium.org/10988
Patch from Pawel Hajdan Jr.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6506 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_browser_process.h')
-rw-r--r-- | chrome/test/testing_browser_process.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/test/testing_browser_process.h b/chrome/test/testing_browser_process.h index 3220c05..435d2bf 100644 --- a/chrome/test/testing_browser_process.h +++ b/chrome/test/testing_browser_process.h @@ -10,6 +10,8 @@ #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H__ #define CHROME_TEST_TESTING_BROWSER_PROCESS_H__ +#include "build/build_config.h" + #include <string> #include "base/string_util.h" @@ -20,7 +22,9 @@ class TestingBrowserProcess : public BrowserProcess { public: TestingBrowserProcess() { +#if defined(OS_WIN) shutdown_event_ = ::CreateEvent(NULL, TRUE, FALSE, NULL); +#endif } virtual ~TestingBrowserProcess() { } @@ -120,12 +124,16 @@ class TestingBrowserProcess : public BrowserProcess { virtual SuspendController* suspend_controller() { return NULL; } +#if defined(OS_WIN) virtual HANDLE shutdown_event() { return shutdown_event_; } +#endif private: NotificationService notification_service_; +#if defined(OS_WIN) HANDLE shutdown_event_; - DISALLOW_EVIL_CONSTRUCTORS(TestingBrowserProcess); +#endif + DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); }; #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H__ |