| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "content/renderer/devtools_agent_filter.h" | 5 #include "content/renderer/devtools_agent_filter.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "content/common/devtools_messages.h" | 8 #include "content/common/devtools_messages.h" |
| 9 #include "content/renderer/devtools_agent.h" | 9 #include "content/renderer/devtools_agent.h" |
| 10 #include "content/renderer/plugin_channel_host.h" | 10 #include "content/renderer/plugin_channel_host.h" |
| 11 #include "content/renderer/render_view.h" | |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 14 | 13 |
| 15 using WebKit::WebDevToolsAgent; | 14 using WebKit::WebDevToolsAgent; |
| 16 using WebKit::WebString; | 15 using WebKit::WebString; |
| 17 | 16 |
| 18 namespace { | 17 namespace { |
| 19 | 18 |
| 20 class MessageImpl : public WebDevToolsAgent::MessageDescriptor { | 19 class MessageImpl : public WebDevToolsAgent::MessageDescriptor { |
| 21 public: | 20 public: |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 message_handled_ = false; | 89 message_handled_ = false; |
| 91 return; | 90 return; |
| 92 } | 91 } |
| 93 WebDevToolsAgent::interruptAndDispatch( | 92 WebDevToolsAgent::interruptAndDispatch( |
| 94 new MessageImpl(message, current_routing_id_)); | 93 new MessageImpl(message, current_routing_id_)); |
| 95 | 94 |
| 96 render_thread_loop_->PostTask( | 95 render_thread_loop_->PostTask( |
| 97 FROM_HERE, | 96 FROM_HERE, |
| 98 NewRunnableFunction(&WebDevToolsAgent::processPendingMessages)); | 97 NewRunnableFunction(&WebDevToolsAgent::processPendingMessages)); |
| 99 } | 98 } |
| OLD | NEW |