| 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 | |
| 10 #include <wtf/HashSet.h> | 8 #include <wtf/HashSet.h> |
| 11 | 9 |
| 12 #include "v8.h" | 10 #include "v8.h" |
| 13 #include "webkit/glue/devtools/debugger_agent.h" | 11 #include "webkit/glue/devtools/debugger_agent.h" |
| 14 #include "webkit/glue/webdevtoolsagent.h" | 12 #include "webkit/glue/webdevtoolsagent.h" |
| 15 | 13 |
| 16 class WebDevToolsAgentImpl; | 14 class WebDevToolsAgentImpl; |
| 17 class WebViewImpl; | 15 class WebViewImpl; |
| 18 | 16 |
| 19 namespace WebCore { | 17 namespace WebCore { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 39 virtual void GetContextId(); | 37 virtual void GetContextId(); |
| 40 | 38 |
| 41 virtual void StartProfiling(int flags); | 39 virtual void StartProfiling(int flags); |
| 42 | 40 |
| 43 virtual void StopProfiling(int flags); | 41 virtual void StopProfiling(int flags); |
| 44 | 42 |
| 45 virtual void GetActiveProfilerModules(); | 43 virtual void GetActiveProfilerModules(); |
| 46 | 44 |
| 47 virtual void GetNextLogLines(); | 45 virtual void GetNextLogLines(); |
| 48 | 46 |
| 49 void DebuggerOutput(const std::string& out); | 47 void DebuggerOutput(const WebCore::String& out); |
| 50 | 48 |
| 51 // Executes function with the given name in the utility context. Passes node | 49 // Executes function with the given name in the utility context. Passes node |
| 52 // and json args as parameters. Note that the function called must be | 50 // and json args as parameters. Note that the function called must be |
| 53 // implemented in the inject_dispatch.js file. | 51 // implemented in the inject_dispatch.js file. |
| 54 WebCore::String ExecuteUtilityFunction( | 52 WebCore::String ExecuteUtilityFunction( |
| 55 v8::Handle<v8::Context> context, | 53 v8::Handle<v8::Context> context, |
| 56 int call_id, | 54 int call_id, |
| 57 const char* object, | 55 const char* object, |
| 58 const WebCore::String& function_name, | 56 const WebCore::String& function_name, |
| 59 const WebCore::String& json_args, | 57 const WebCore::String& json_args, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 73 private: | 71 private: |
| 74 WebViewImpl* web_view_impl_; | 72 WebViewImpl* web_view_impl_; |
| 75 DebuggerAgentDelegate* delegate_; | 73 DebuggerAgentDelegate* delegate_; |
| 76 WebDevToolsAgentImpl* webdevtools_agent_; | 74 WebDevToolsAgentImpl* webdevtools_agent_; |
| 77 int profiler_log_position_; | 75 int profiler_log_position_; |
| 78 | 76 |
| 79 DISALLOW_COPY_AND_ASSIGN(DebuggerAgentImpl); | 77 DISALLOW_COPY_AND_ASSIGN(DebuggerAgentImpl); |
| 80 }; | 78 }; |
| 81 | 79 |
| 82 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 80 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
| OLD | NEW |