| 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 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 v8::Persistent<v8::Context>* context); | 31 v8::Persistent<v8::Context>* context); |
| 32 | 32 |
| 33 DebuggerAgentImpl(WebKit::WebViewImpl* web_view_impl, | 33 DebuggerAgentImpl(WebKit::WebViewImpl* web_view_impl, |
| 34 DebuggerAgentDelegate* delegate, | 34 DebuggerAgentDelegate* delegate, |
| 35 WebDevToolsAgentImpl* webdevtools_agent); | 35 WebDevToolsAgentImpl* webdevtools_agent); |
| 36 virtual ~DebuggerAgentImpl(); | 36 virtual ~DebuggerAgentImpl(); |
| 37 | 37 |
| 38 // DebuggerAgent implementation. | 38 // DebuggerAgent implementation. |
| 39 virtual void GetContextId(); | 39 virtual void GetContextId(); |
| 40 | 40 |
| 41 virtual void StartProfiling(int flags); | |
| 42 | |
| 43 virtual void StopProfiling(int flags); | |
| 44 | |
| 45 virtual void GetActiveProfilerModules(); | |
| 46 | |
| 47 virtual void GetNextLogLines(); | |
| 48 | |
| 49 void DebuggerOutput(const WebCore::String& out); | 41 void DebuggerOutput(const WebCore::String& out); |
| 50 | 42 |
| 51 void set_auto_continue_on_exception(bool auto_continue) { | 43 void set_auto_continue_on_exception(bool auto_continue) { |
| 52 auto_continue_on_exception_ = auto_continue; | 44 auto_continue_on_exception_ = auto_continue; |
| 53 } | 45 } |
| 54 | 46 |
| 55 bool auto_continue_on_exception() { return auto_continue_on_exception_; } | 47 bool auto_continue_on_exception() { return auto_continue_on_exception_; } |
| 56 | 48 |
| 57 // 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 |
| 58 // 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 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 73 | 65 |
| 74 WebCore::Page* GetPage(); | 66 WebCore::Page* GetPage(); |
| 75 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; | 67 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; |
| 76 | 68 |
| 77 WebKit::WebViewImpl* web_view() { return web_view_impl_; } | 69 WebKit::WebViewImpl* web_view() { return web_view_impl_; } |
| 78 | 70 |
| 79 private: | 71 private: |
| 80 WebKit::WebViewImpl* web_view_impl_; | 72 WebKit::WebViewImpl* web_view_impl_; |
| 81 DebuggerAgentDelegate* delegate_; | 73 DebuggerAgentDelegate* delegate_; |
| 82 WebDevToolsAgentImpl* webdevtools_agent_; | 74 WebDevToolsAgentImpl* webdevtools_agent_; |
| 83 int profiler_log_position_; | |
| 84 bool auto_continue_on_exception_; | 75 bool auto_continue_on_exception_; |
| 85 }; | 76 }; |
| 86 | 77 |
| 87 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 78 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
| OLD | NEW |