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_WEBDEVTOOLSAGENT_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ |
6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include <wtf/Noncopyable.h> |
10 #include <wtf/OwnPtr.h> | 11 #include <wtf/OwnPtr.h> |
11 | 12 |
12 #include "v8.h" | 13 #include "v8.h" |
13 #include "webkit/api/public/WebDevToolsAgent.h" | 14 #include "webkit/api/public/WebDevToolsAgent.h" |
14 #include "webkit/glue/devtools/devtools_rpc.h" | 15 #include "webkit/glue/devtools/devtools_rpc.h" |
15 #include "webkit/glue/devtools/apu_agent_delegate.h" | 16 #include "webkit/glue/devtools/apu_agent_delegate.h" |
16 #include "webkit/glue/devtools/tools_agent.h" | 17 #include "webkit/glue/devtools/tools_agent.h" |
17 | 18 |
18 namespace WebCore { | 19 namespace WebCore { |
19 class Document; | 20 class Document; |
20 class Node; | 21 class Node; |
21 class ScriptState; | 22 class ScriptState; |
22 class String; | 23 class String; |
23 } | 24 } |
24 | 25 |
25 namespace WebKit { | 26 namespace WebKit { |
26 class WebDevToolsAgentClient; | 27 class WebDevToolsAgentClient; |
27 class WebFrame; | 28 class WebFrame; |
28 } | 29 } |
29 | 30 |
30 class BoundObject; | 31 class BoundObject; |
31 class DebuggerAgentDelegateStub; | 32 class DebuggerAgentDelegateStub; |
32 class DebuggerAgentImpl; | 33 class DebuggerAgentImpl; |
33 class Value; | 34 class Value; |
34 class WebFrameImpl; | 35 class WebFrameImpl; |
35 class WebViewImpl; | 36 class WebViewImpl; |
36 | 37 |
37 class WebDevToolsAgentImpl : public WebKit::WebDevToolsAgent, | 38 class WebDevToolsAgentImpl : public WebKit::WebDevToolsAgent, |
38 public ToolsAgent, | 39 public ToolsAgent, |
39 public DevToolsRpc::Delegate { | 40 public DevToolsRpc::Delegate, |
| 41 public Noncopyable { |
40 public: | 42 public: |
41 WebDevToolsAgentImpl(WebViewImpl* web_view_impl, | 43 WebDevToolsAgentImpl(WebViewImpl* web_view_impl, |
42 WebKit::WebDevToolsAgentClient* client); | 44 WebKit::WebDevToolsAgentClient* client); |
43 virtual ~WebDevToolsAgentImpl(); | 45 virtual ~WebDevToolsAgentImpl(); |
44 | 46 |
45 // ToolsAgent implementation. | 47 // ToolsAgent implementation. |
46 virtual void DispatchOnInspectorController( | 48 virtual void DispatchOnInspectorController( |
47 int call_id, | 49 int call_id, |
48 const WebCore::String& function_name, | 50 const WebCore::String& function_name, |
49 const WebCore::String& json_args); | 51 const WebCore::String& json_args); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 OwnPtr<DebuggerAgentImpl> debugger_agent_impl_; | 114 OwnPtr<DebuggerAgentImpl> debugger_agent_impl_; |
113 OwnPtr<ApuAgentDelegateStub> apu_agent_delegate_stub_; | 115 OwnPtr<ApuAgentDelegateStub> apu_agent_delegate_stub_; |
114 bool apu_agent_enabled_; | 116 bool apu_agent_enabled_; |
115 bool resource_tracking_was_enabled_; | 117 bool resource_tracking_was_enabled_; |
116 bool attached_; | 118 bool attached_; |
117 // TODO(pfeldman): This should not be needed once GC styles issue is fixed | 119 // TODO(pfeldman): This should not be needed once GC styles issue is fixed |
118 // for matching rules. | 120 // for matching rules. |
119 v8::Persistent<v8::Context> utility_context_; | 121 v8::Persistent<v8::Context> utility_context_; |
120 OwnPtr<BoundObject> devtools_agent_host_; | 122 OwnPtr<BoundObject> devtools_agent_host_; |
121 OwnPtr<WebCore::ScriptState> inspector_frontend_script_state_; | 123 OwnPtr<WebCore::ScriptState> inspector_frontend_script_state_; |
122 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgentImpl); | |
123 }; | 124 }; |
124 | 125 |
125 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ | 126 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ |
OLD | NEW |