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 <string> |
| 9 |
8 #include <wtf/HashSet.h> | 10 #include <wtf/HashSet.h> |
9 | 11 |
10 #include "v8.h" | 12 #include "v8.h" |
11 #include "webkit/glue/devtools/debugger_agent.h" | 13 #include "webkit/glue/devtools/debugger_agent.h" |
12 #include "webkit/glue/webdevtoolsagent.h" | 14 #include "webkit/glue/webdevtoolsagent.h" |
13 | 15 |
14 class WebDevToolsAgentImpl; | 16 class WebDevToolsAgentImpl; |
15 class WebViewImpl; | 17 class WebViewImpl; |
16 | 18 |
17 namespace WebCore { | 19 namespace WebCore { |
(...skipping 11 matching lines...) Expand all Loading... |
29 | 31 |
30 DebuggerAgentImpl(WebViewImpl* web_view_impl, | 32 DebuggerAgentImpl(WebViewImpl* web_view_impl, |
31 DebuggerAgentDelegate* delegate, | 33 DebuggerAgentDelegate* delegate, |
32 WebDevToolsAgentImpl* webdevtools_agent); | 34 WebDevToolsAgentImpl* webdevtools_agent); |
33 virtual ~DebuggerAgentImpl(); | 35 virtual ~DebuggerAgentImpl(); |
34 | 36 |
35 // DebuggerAgent implementation. | 37 // DebuggerAgent implementation. |
36 virtual void DebugBreak(); | 38 virtual void DebugBreak(); |
37 virtual void GetContextId(); | 39 virtual void GetContextId(); |
38 | 40 |
| 41 virtual void StartProfiling(); |
| 42 |
| 43 virtual void StopProfiling(); |
| 44 |
| 45 virtual void GetLogLines(int position); |
| 46 |
39 void DebuggerOutput(const std::string& out); | 47 void DebuggerOutput(const std::string& out); |
40 | 48 |
| 49 void DidGetLogLines(const std::string& log, int new_position); |
| 50 |
41 // Executes function with the given name in the utility context. Passes node | 51 // Executes function with the given name in the utility context. Passes node |
42 // and json args as parameters. Note that the function called must be | 52 // and json args as parameters. Note that the function called must be |
43 // implemented in the inject.js file. | 53 // implemented in the inject.js file. |
44 WebCore::String ExecuteUtilityFunction( | 54 WebCore::String ExecuteUtilityFunction( |
45 v8::Handle<v8::Context> context, | 55 v8::Handle<v8::Context> context, |
46 const WebCore::String& function_name, | 56 const WebCore::String& function_name, |
47 WebCore::Node* node, | 57 WebCore::Node* node, |
48 const WebCore::String& json_args, | 58 const WebCore::String& json_args, |
49 WebCore::String* exception); | 59 WebCore::String* exception); |
50 | 60 |
51 WebCore::Page* GetPage(); | 61 WebCore::Page* GetPage(); |
52 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; | 62 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; |
53 | 63 |
54 WebViewImpl* web_view() { return web_view_impl_; } | 64 WebViewImpl* web_view() { return web_view_impl_; } |
55 | 65 |
56 private: | 66 private: |
57 WebViewImpl* web_view_impl_; | 67 WebViewImpl* web_view_impl_; |
58 DebuggerAgentDelegate* delegate_; | 68 DebuggerAgentDelegate* delegate_; |
59 WebDevToolsAgentImpl* webdevtools_agent_; | 69 WebDevToolsAgentImpl* webdevtools_agent_; |
60 | 70 |
61 DISALLOW_COPY_AND_ASSIGN(DebuggerAgentImpl); | 71 DISALLOW_COPY_AND_ASSIGN(DebuggerAgentImpl); |
62 }; | 72 }; |
63 | 73 |
64 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 74 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
OLD | NEW |