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 CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 5 #ifndef CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
6 #define CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 6 #define CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 29 matching lines...) Expand all Loading... |
40 // WebDevToolsAgentClient implementation | 40 // WebDevToolsAgentClient implementation |
41 virtual void sendMessageToFrontend( | 41 virtual void sendMessageToFrontend( |
42 const WebKit::WebDevToolsMessageData& data); | 42 const WebKit::WebDevToolsMessageData& data); |
43 | 43 |
44 virtual int hostIdentifier(); | 44 virtual int hostIdentifier(); |
45 virtual void forceRepaint(); | 45 virtual void forceRepaint(); |
46 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature, | 46 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature, |
47 bool enabled); | 47 bool enabled); |
48 virtual WebKit::WebCString injectedScriptSource(); | 48 virtual WebKit::WebCString injectedScriptSource(); |
49 virtual WebKit::WebCString injectedScriptDispatcherSource(); | 49 virtual WebKit::WebCString injectedScriptDispatcherSource(); |
| 50 virtual WebKit::WebCString debuggerScriptSource(); |
50 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* | 51 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* |
51 createClientMessageLoop(); | 52 createClientMessageLoop(); |
52 virtual bool exposeV8DebuggerProtocol(); | 53 virtual bool exposeV8DebuggerProtocol(); |
53 | 54 |
54 // Returns agent instance for its host id. | 55 // Returns agent instance for its host id. |
55 static DevToolsAgent* FromHostId(int host_id); | 56 static DevToolsAgent* FromHostId(int host_id); |
56 | 57 |
57 RenderView* render_view() { return render_view_; } | 58 RenderView* render_view() { return render_view_; } |
58 | 59 |
59 WebKit::WebDevToolsAgent* GetWebAgent(); | 60 WebKit::WebDevToolsAgent* GetWebAgent(); |
(...skipping 10 matching lines...) Expand all Loading... |
70 static std::map<int, DevToolsAgent*> agent_for_routing_id_; | 71 static std::map<int, DevToolsAgent*> agent_for_routing_id_; |
71 | 72 |
72 int routing_id_; // View routing id that we can access from IO thread. | 73 int routing_id_; // View routing id that we can access from IO thread. |
73 RenderView* render_view_; | 74 RenderView* render_view_; |
74 bool expose_v8_debugger_protocol_; | 75 bool expose_v8_debugger_protocol_; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 77 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
77 }; | 78 }; |
78 | 79 |
79 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 80 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
OLD | NEW |