| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "Frame.h" | 7 #include "Frame.h" |
| 8 #include "PageGroupLoadDeferrer.h" | 8 #include "PageGroupLoadDeferrer.h" |
| 9 #include "V8Proxy.h" | 9 #include "V8Proxy.h" |
| 10 #include <wtf/HashSet.h> | 10 #include <wtf/HashSet.h> |
| 11 #undef LOG | 11 #undef LOG |
| 12 | 12 |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "webkit/api/public/WebDevToolsAgent.h" |
| 14 #include "webkit/glue/devtools/debugger_agent_impl.h" | 15 #include "webkit/glue/devtools/debugger_agent_impl.h" |
| 15 #include "webkit/glue/devtools/debugger_agent_manager.h" | 16 #include "webkit/glue/devtools/debugger_agent_manager.h" |
| 16 #include "webkit/glue/webdevtoolsagent_impl.h" | 17 #include "webkit/glue/webdevtoolsagent_impl.h" |
| 17 #include "webkit/glue/webview_impl.h" | 18 #include "webkit/glue/webview_impl.h" |
| 18 | 19 |
| 19 #if USE(V8) | 20 #if USE(V8) |
| 20 #include "v8/include/v8-debug.h" | 21 #include "v8/include/v8-debug.h" |
| 21 #endif | 22 #endif |
| 22 | 23 |
| 24 using WebKit::WebDevToolsAgent; |
| 25 |
| 23 WebDevToolsAgent::MessageLoopDispatchHandler | 26 WebDevToolsAgent::MessageLoopDispatchHandler |
| 24 DebuggerAgentManager::message_loop_dispatch_handler_ = NULL; | 27 DebuggerAgentManager::message_loop_dispatch_handler_ = NULL; |
| 25 | 28 |
| 26 // static | 29 // static |
| 27 bool DebuggerAgentManager::in_host_dispatch_handler_ = false; | 30 bool DebuggerAgentManager::in_host_dispatch_handler_ = false; |
| 28 | 31 |
| 29 // static | 32 // static |
| 30 DebuggerAgentManager::DeferrersMap DebuggerAgentManager::page_deferrers_; | 33 DebuggerAgentManager::DeferrersMap DebuggerAgentManager::page_deferrers_; |
| 31 | 34 |
| 32 // static | 35 // static |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 return NULL; | 313 return NULL; |
| 311 } | 314 } |
| 312 | 315 |
| 313 // static | 316 // static |
| 314 DebuggerAgentImpl* DebuggerAgentManager::DebuggerAgentForHostId(int host_id) { | 317 DebuggerAgentImpl* DebuggerAgentManager::DebuggerAgentForHostId(int host_id) { |
| 315 if (!attached_agents_map_) { | 318 if (!attached_agents_map_) { |
| 316 return NULL; | 319 return NULL; |
| 317 } | 320 } |
| 318 return attached_agents_map_->get(host_id); | 321 return attached_agents_map_->get(host_id); |
| 319 } | 322 } |
| OLD | NEW |