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 | 10 |
10 #include "v8.h" | 11 #include "v8.h" |
11 #include "webkit/glue/devtools/debugger_agent.h" | 12 #include "webkit/glue/devtools/debugger_agent.h" |
12 | 13 |
13 class WebDevToolsAgentImpl; | 14 class WebDevToolsAgentImpl; |
14 class WebViewImpl; | 15 class WebViewImpl; |
15 | 16 |
16 namespace WebCore { | 17 namespace WebCore { |
17 class Document; | 18 class Document; |
18 class Node; | 19 class Node; |
19 class Page; | 20 class Page; |
20 class String; | 21 class String; |
21 } | 22 } |
22 | 23 |
23 class DebuggerAgentImpl : public DebuggerAgent { | 24 class DebuggerAgentImpl : public DebuggerAgent, public Noncopyable { |
24 public: | 25 public: |
25 // Creates utility context with injected js agent. | 26 // Creates utility context with injected js agent. |
26 static void CreateUtilityContext(WebCore::Frame* frame, | 27 static void CreateUtilityContext(WebCore::Frame* frame, |
27 v8::Persistent<v8::Context>* context); | 28 v8::Persistent<v8::Context>* context); |
28 | 29 |
29 DebuggerAgentImpl(WebViewImpl* web_view_impl, | 30 DebuggerAgentImpl(WebViewImpl* web_view_impl, |
30 DebuggerAgentDelegate* delegate, | 31 DebuggerAgentDelegate* delegate, |
31 WebDevToolsAgentImpl* webdevtools_agent); | 32 WebDevToolsAgentImpl* webdevtools_agent); |
32 virtual ~DebuggerAgentImpl(); | 33 virtual ~DebuggerAgentImpl(); |
33 | 34 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 WebCore::Page* GetPage(); | 66 WebCore::Page* GetPage(); |
66 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; | 67 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; |
67 | 68 |
68 WebViewImpl* web_view() { return web_view_impl_; } | 69 WebViewImpl* web_view() { return web_view_impl_; } |
69 | 70 |
70 private: | 71 private: |
71 WebViewImpl* web_view_impl_; | 72 WebViewImpl* web_view_impl_; |
72 DebuggerAgentDelegate* delegate_; | 73 DebuggerAgentDelegate* delegate_; |
73 WebDevToolsAgentImpl* webdevtools_agent_; | 74 WebDevToolsAgentImpl* webdevtools_agent_; |
74 int profiler_log_position_; | 75 int profiler_log_position_; |
75 | |
76 DISALLOW_COPY_AND_ASSIGN(DebuggerAgentImpl); | |
77 }; | 76 }; |
78 | 77 |
79 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 78 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
OLD | NEW |