diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-22 11:33:05 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-22 11:33:05 +0000 |
commit | b4b967edacf8e291f78df2c8238e3446922a179f (patch) | |
tree | 621b8c0eedf48e7cb346f31277ce3b34a30cb99a /webkit/glue/webdevtoolsagent.h | |
parent | 57b4ef12d0f726a79a3fa023cd6bb32b51925be8 (diff) | |
download | chromium_src-b4b967edacf8e291f78df2c8238e3446922a179f.zip chromium_src-b4b967edacf8e291f78df2c8238e3446922a179f.tar.gz chromium_src-b4b967edacf8e291f78df2c8238e3446922a179f.tar.bz2 |
DevTools: Run nested message loop instead of whitelisting the messages.
Review URL: http://codereview.chromium.org/90007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14183 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webdevtoolsagent.h')
-rw-r--r-- | webkit/glue/webdevtoolsagent.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/glue/webdevtoolsagent.h b/webkit/glue/webdevtoolsagent.h index 049964b..9680e84 100644 --- a/webkit/glue/webdevtoolsagent.h +++ b/webkit/glue/webdevtoolsagent.h @@ -37,9 +37,12 @@ class WebDevToolsAgent { static void ExecuteDebuggerCommand(const std::string& command, int caller_id); - // Requests that debugger makes a callback on the render thread while on - // breakpoint. Takes ownership of message. - static void ScheduleMessageDispatch(Message* message); + typedef void (*MessageLoopDispatchHandler)(); + + // Installs dispatch handle that is going to be called periodically + // while on a breakpoint. + static void SetMessageLoopDispatchHandler( + MessageLoopDispatchHandler handler); private: DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgent); |