diff options
author | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-06 10:39:35 +0000 |
---|---|---|
committer | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-06 10:39:35 +0000 |
commit | 574036712fa0d0347e088333117ed2ef99c087f5 (patch) | |
tree | c839fd80e1613bee978d1e4692a89080601efcf2 /chrome/renderer/debug_message_handler.h | |
parent | 9c72092d36013e13633a6c94e02fac848f9c0cd9 (diff) | |
download | chromium_src-574036712fa0d0347e088333117ed2ef99c087f5.zip chromium_src-574036712fa0d0347e088333117ed2ef99c087f5.tar.gz chromium_src-574036712fa0d0347e088333117ed2ef99c087f5.tar.bz2 |
Changed the call to attach the debugger to V8 to run in the renderer thread. With V8 r648 (Review URL: http://codereview.chromium.org/8909) attaching the debugger to V8 will initialize V8 if not already initialized. This needs to be serialized with the initialization of V8 in the renderer thread.
This change does not require the changes in V8 r648, but will not have any effect without.
Added a few comments.
BUG=3723
Review URL: http://codereview.chromium.org/8735
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4875 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/debug_message_handler.h')
-rw-r--r-- | chrome/renderer/debug_message_handler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/renderer/debug_message_handler.h b/chrome/renderer/debug_message_handler.h index f02ad88..9720ef1 100644 --- a/chrome/renderer/debug_message_handler.h +++ b/chrome/renderer/debug_message_handler.h @@ -21,9 +21,12 @@ class DebugMessageHandler : public IPC::ChannelProxy::MessageFilter, virtual ~DebugMessageHandler(); private: - // evaluate javascript URL in the renderer + // Evaluate javascript URL in the renderer void EvaluateScript(const std::wstring& script); + // Attach in the renderer + void Attach(); + // Debugger::Delegate callback method to handle debugger output. void DebuggerOutput(const std::wstring& out); |