diff options
Diffstat (limited to 'chromium/base/run_loop.h')
-rw-r--r-- | chromium/base/run_loop.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/chromium/base/run_loop.h b/chromium/base/run_loop.h index 0dce6346e76..002410892f6 100644 --- a/chromium/base/run_loop.h +++ b/chromium/base/run_loop.h @@ -15,6 +15,10 @@ namespace base { class MessagePumpForUI; #endif +#if defined(OS_WIN) +class MessagePumpDispatcher; +#endif + #if defined(OS_IOS) class MessagePumpUIApplication; #endif @@ -27,19 +31,11 @@ class MessagePumpUIApplication; class BASE_EXPORT RunLoop { public: RunLoop(); -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ - !defined(USE_GTK_MESSAGE_PUMP) - explicit RunLoop(MessageLoop::Dispatcher* dispatcher); +#if defined(OS_WIN) + explicit RunLoop(MessagePumpDispatcher* dispatcher); #endif ~RunLoop(); -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ - !defined(USE_GTK_MESSAGE_PUMP) - void set_dispatcher(MessageLoop::Dispatcher* dispatcher) { - dispatcher_ = dispatcher; - } -#endif - // Run the current MessageLoop. This blocks until Quit is called. Before // calling Run, be sure to grab an AsWeakPtr or the QuitClosure in order to // stop the MessageLoop asynchronously. MessageLoop::Quit and QuitNow will @@ -97,9 +93,8 @@ class BASE_EXPORT RunLoop { // Parent RunLoop or NULL if this is the top-most RunLoop. RunLoop* previous_run_loop_; -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ - !defined(USE_GTK_MESSAGE_PUMP) - MessageLoop::Dispatcher* dispatcher_; +#if defined(OS_WIN) + MessagePumpDispatcher* dispatcher_; #endif // Used to count how many nested Run() invocations are on the stack. |