| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/renderer/debug_message_handler.h" | 5 #include "chrome/renderer/debug_message_handler.h" |
| 6 |
| 7 #include "chrome/common/render_messages.h" |
| 6 #include "chrome/renderer/render_view.h" | 8 #include "chrome/renderer/render_view.h" |
| 7 | 9 |
| 8 //////////////////////////////////////// | 10 //////////////////////////////////////// |
| 9 // methods called from the RenderThread | 11 // methods called from the RenderThread |
| 10 | 12 |
| 11 DebugMessageHandler::DebugMessageHandler(RenderView* view) | 13 DebugMessageHandler::DebugMessageHandler(RenderView* view) |
| 12 : debugger_(NULL), | 14 : debugger_(NULL), |
| 13 view_(view), | 15 view_(view), |
| 14 channel_(NULL) { | 16 channel_(NULL) { |
| 15 view_loop_ = MessageLoop::current(); | 17 view_loop_ = MessageLoop::current(); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // hang forever and never exit. To avoid this, we look for close messages | 125 // hang forever and never exit. To avoid this, we look for close messages |
| 124 // and tell the debugger to shutdown. | 126 // and tell the debugger to shutdown. |
| 125 IPC_MESSAGE_HANDLER_GENERIC(ViewMsg_Close, | 127 IPC_MESSAGE_HANDLER_GENERIC(ViewMsg_Close, |
| 126 if (debugger_) OnDetach(); | 128 if (debugger_) OnDetach(); |
| 127 handled = false;) | 129 handled = false;) |
| 128 IPC_MESSAGE_UNHANDLED(handled = false); | 130 IPC_MESSAGE_UNHANDLED(handled = false); |
| 129 IPC_END_MESSAGE_MAP() | 131 IPC_END_MESSAGE_MAP() |
| 130 return handled; | 132 return handled; |
| 131 } | 133 } |
| 132 | 134 |
| OLD | NEW |