| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "Document.h" | 9 #include "Document.h" |
| 10 #include "EventListener.h" | 10 #include "EventListener.h" |
| 11 #include "InspectorBackend.h" | 11 #include "InspectorBackend.h" |
| 12 #include "InspectorController.h" | 12 #include "InspectorController.h" |
| 13 #include "InspectorFrontend.h" | 13 #include "InspectorFrontend.h" |
| 14 #include "InspectorResource.h" | 14 #include "InspectorResource.h" |
| 15 #include "Node.h" | 15 #include "Node.h" |
| 16 #include "Page.h" | 16 #include "Page.h" |
| 17 #include "PlatformString.h" | 17 #include "PlatformString.h" |
| 18 #include "ScriptObject.h" | 18 #include "ScriptObject.h" |
| 19 #include "ScriptState.h" | 19 #include "ScriptState.h" |
| 20 #include "ScriptValue.h" | 20 #include "ScriptValue.h" |
| 21 #include "V8Binding.h" | 21 #include "V8Binding.h" |
| 22 #include "V8Proxy.h" | 22 #include "V8Proxy.h" |
| 23 #include "V8Utilities.h" | 23 #include "V8Utilities.h" |
| 24 #include <wtf/OwnPtr.h> | 24 #include <wtf/OwnPtr.h> |
| 25 #undef LOG | 25 #undef LOG |
| 26 | 26 |
| 27 #include "webkit/api/public/WebDataSource.h" | 27 #include "webkit/api/public/WebDataSource.h" |
| 28 #include "webkit/api/public/WebDevToolsAgentClient.h" | 28 #include "webkit/api/public/WebDevToolsAgentClient.h" |
| 29 #include "webkit/api/public/WebFrame.h" |
| 29 #include "webkit/api/public/WebURL.h" | 30 #include "webkit/api/public/WebURL.h" |
| 30 #include "webkit/api/public/WebURLRequest.h" | 31 #include "webkit/api/public/WebURLRequest.h" |
| 32 #include "webkit/api/src/WebViewImpl.h" |
| 31 #include "webkit/glue/devtools/bound_object.h" | 33 #include "webkit/glue/devtools/bound_object.h" |
| 32 #include "webkit/glue/devtools/debugger_agent_impl.h" | 34 #include "webkit/glue/devtools/debugger_agent_impl.h" |
| 33 #include "webkit/glue/devtools/debugger_agent_manager.h" | 35 #include "webkit/glue/devtools/debugger_agent_manager.h" |
| 34 #include "webkit/glue/glue_util.h" | 36 #include "webkit/glue/glue_util.h" |
| 35 #include "webkit/glue/webdevtoolsagent_impl.h" | 37 #include "webkit/glue/webdevtoolsagent_impl.h" |
| 36 #include "webkit/glue/webview_impl.h" | |
| 37 | 38 |
| 38 using WebCore::Document; | 39 using WebCore::Document; |
| 39 using WebCore::InspectorBackend; | 40 using WebCore::InspectorBackend; |
| 40 using WebCore::InspectorController; | 41 using WebCore::InspectorController; |
| 41 using WebCore::InspectorFrontend; | 42 using WebCore::InspectorFrontend; |
| 42 using WebCore::InspectorResource; | 43 using WebCore::InspectorResource; |
| 43 using WebCore::Node; | 44 using WebCore::Node; |
| 44 using WebCore::Page; | 45 using WebCore::Page; |
| 45 using WebCore::SafeAllocation; | 46 using WebCore::SafeAllocation; |
| 46 using WebCore::ScriptObject; | 47 using WebCore::ScriptObject; |
| 47 using WebCore::ScriptState; | 48 using WebCore::ScriptState; |
| 48 using WebCore::ScriptValue; | 49 using WebCore::ScriptValue; |
| 49 using WebCore::String; | 50 using WebCore::String; |
| 50 using WebCore::V8ClassIndex; | 51 using WebCore::V8ClassIndex; |
| 51 using WebCore::V8DOMWrapper; | 52 using WebCore::V8DOMWrapper; |
| 52 using WebCore::V8Proxy; | 53 using WebCore::V8Proxy; |
| 53 using WebKit::WebDataSource; | 54 using WebKit::WebDataSource; |
| 54 using WebKit::WebDevToolsAgentClient; | 55 using WebKit::WebDevToolsAgentClient; |
| 55 using WebKit::WebFrame; | 56 using WebKit::WebFrame; |
| 57 using WebKit::WebFrameImpl; |
| 56 using WebKit::WebPoint; | 58 using WebKit::WebPoint; |
| 57 using WebKit::WebString; | 59 using WebKit::WebString; |
| 58 using WebKit::WebURL; | 60 using WebKit::WebURL; |
| 59 using WebKit::WebURLRequest; | 61 using WebKit::WebURLRequest; |
| 62 using WebKit::WebViewImpl; |
| 60 | 63 |
| 61 namespace { | 64 namespace { |
| 62 | 65 |
| 63 void InspectorBackendWeakReferenceCallback(v8::Persistent<v8::Value> object, | 66 void InspectorBackendWeakReferenceCallback(v8::Persistent<v8::Value> object, |
| 64 void* parameter) { | 67 void* parameter) { |
| 65 InspectorBackend* backend = static_cast<InspectorBackend*>(parameter); | 68 InspectorBackend* backend = static_cast<InspectorBackend*>(parameter); |
| 66 backend->deref(); | 69 backend->deref(); |
| 67 object.Dispose(); | 70 object.Dispose(); |
| 68 } | 71 } |
| 69 | 72 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 webkit_glue::WebStringToString(command), caller_id); | 417 webkit_glue::WebStringToString(command), caller_id); |
| 415 } | 418 } |
| 416 | 419 |
| 417 // static | 420 // static |
| 418 void WebDevToolsAgent::setMessageLoopDispatchHandler( | 421 void WebDevToolsAgent::setMessageLoopDispatchHandler( |
| 419 MessageLoopDispatchHandler handler) { | 422 MessageLoopDispatchHandler handler) { |
| 420 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); | 423 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); |
| 421 } | 424 } |
| 422 | 425 |
| 423 } // namespace WebKit | 426 } // namespace WebKit |
| OLD | NEW |