| 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 #ifndef WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
| 6 #define WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 6 #define WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <wtf/HashSet.h> | 8 #include <wtf/HashSet.h> |
| 9 #include <wtf/Noncopyable.h> | 9 #include <wtf/Noncopyable.h> |
| 10 | 10 |
| 11 #include "v8.h" | 11 #include "v8.h" |
| 12 #include "webkit/glue/devtools/debugger_agent.h" | 12 #include "webkit/glue/devtools/debugger_agent.h" |
| 13 | 13 |
| 14 class WebDevToolsAgentImpl; | 14 class WebDevToolsAgentImpl; |
| 15 class WebViewImpl; | |
| 16 | 15 |
| 17 namespace WebCore { | 16 namespace WebCore { |
| 18 class Document; | 17 class Document; |
| 19 class Node; | 18 class Node; |
| 20 class Page; | 19 class Page; |
| 21 class String; | 20 class String; |
| 22 } | 21 } |
| 23 | 22 |
| 23 namespace WebKit { |
| 24 class WebViewImpl; |
| 25 } |
| 26 |
| 24 class DebuggerAgentImpl : public DebuggerAgent { | 27 class DebuggerAgentImpl : public DebuggerAgent { |
| 25 public: | 28 public: |
| 26 // Creates utility context with injected js agent. | 29 // Creates utility context with injected js agent. |
| 27 static void CreateUtilityContext(WebCore::Frame* frame, | 30 static void CreateUtilityContext(WebCore::Frame* frame, |
| 28 v8::Persistent<v8::Context>* context); | 31 v8::Persistent<v8::Context>* context); |
| 29 | 32 |
| 30 DebuggerAgentImpl(WebViewImpl* web_view_impl, | 33 DebuggerAgentImpl(WebKit::WebViewImpl* web_view_impl, |
| 31 DebuggerAgentDelegate* delegate, | 34 DebuggerAgentDelegate* delegate, |
| 32 WebDevToolsAgentImpl* webdevtools_agent); | 35 WebDevToolsAgentImpl* webdevtools_agent); |
| 33 virtual ~DebuggerAgentImpl(); | 36 virtual ~DebuggerAgentImpl(); |
| 34 | 37 |
| 35 // DebuggerAgent implementation. | 38 // DebuggerAgent implementation. |
| 36 virtual void DebugBreak(); | 39 virtual void DebugBreak(); |
| 37 virtual void GetContextId(); | 40 virtual void GetContextId(); |
| 38 | 41 |
| 39 virtual void StartProfiling(int flags); | 42 virtual void StartProfiling(int flags); |
| 40 | 43 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 59 WebCore::String* exception); | 62 WebCore::String* exception); |
| 60 | 63 |
| 61 // Executes a no-op function in the utility context. We don't use | 64 // Executes a no-op function in the utility context. We don't use |
| 62 // ExecuteUtilityFunction for that to avoid script evaluation leading to | 65 // ExecuteUtilityFunction for that to avoid script evaluation leading to |
| 63 // undesirable AfterCompile events. | 66 // undesirable AfterCompile events. |
| 64 void ExecuteVoidJavaScript(v8::Handle<v8::Context> context); | 67 void ExecuteVoidJavaScript(v8::Handle<v8::Context> context); |
| 65 | 68 |
| 66 WebCore::Page* GetPage(); | 69 WebCore::Page* GetPage(); |
| 67 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; | 70 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; |
| 68 | 71 |
| 69 WebViewImpl* web_view() { return web_view_impl_; } | 72 WebKit::WebViewImpl* web_view() { return web_view_impl_; } |
| 70 | 73 |
| 71 private: | 74 private: |
| 72 WebViewImpl* web_view_impl_; | 75 WebKit::WebViewImpl* web_view_impl_; |
| 73 DebuggerAgentDelegate* delegate_; | 76 DebuggerAgentDelegate* delegate_; |
| 74 WebDevToolsAgentImpl* webdevtools_agent_; | 77 WebDevToolsAgentImpl* webdevtools_agent_; |
| 75 int profiler_log_position_; | 78 int profiler_log_position_; |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 81 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
| OLD | NEW |