From 6012ad27a7c289d27bbff436bf6affd62a00a18a Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Wed, 3 Dec 2008 14:04:49 +0000 Subject: Copy of http://codereview.chromium.org/13003 created by yury.semikhatsky@gmail.com for final commit. Review URL: http://codereview.chromium.org/13092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6286 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/debugger/debugger_io.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'chrome/browser/debugger/debugger_io.h') diff --git a/chrome/browser/debugger/debugger_io.h b/chrome/browser/debugger/debugger_io.h index 1e4a5f4..b2ea381 100644 --- a/chrome/browser/debugger/debugger_io.h +++ b/chrome/browser/debugger/debugger_io.h @@ -6,11 +6,13 @@ #define CHROME_BROWSER_DEBUGGER_DEBUGGER_IO_H_ #include +#include #include "base/basictypes.h" #include "base/ref_counted.h" -class DebuggerShell; +class DebuggerHost; +class ListValue; class DebuggerInputOutput : public base::RefCountedThreadSafe { @@ -19,7 +21,7 @@ public: virtual ~DebuggerInputOutput() {} // Called when Debugger is ready to begin. - virtual void Start(DebuggerShell* debugger) { debugger_ = debugger; } + virtual void Start(DebuggerHost* debugger) { debugger_ = debugger; } // Called when Debugger is shutting down virtual void Stop() {} @@ -39,8 +41,12 @@ public: // is running, and true when the page is stopped at a breakpoint virtual void SetDebuggerBreak(bool brk) {} + // sends message to debugger UI page in order to invoke JS function in it + virtual void CallFunctionInPage(const std::wstring& name, + ListValue* argv) {} + protected: - DebuggerShell* debugger_; + DebuggerHost* debugger_; private: DISALLOW_COPY_AND_ASSIGN(DebuggerInputOutput); -- cgit v1.1