OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual void sendMessageToInspectorFrontend(const WebKit::WebString& data); | 42 virtual void sendMessageToInspectorFrontend(const WebKit::WebString& data); |
43 virtual void sendDebuggerOutput(const WebKit::WebString& data); | 43 virtual void sendDebuggerOutput(const WebKit::WebString& data); |
44 virtual void sendDispatchToAPU(const WebKit::WebString& data); | 44 virtual void sendDispatchToAPU(const WebKit::WebString& data); |
45 | 45 |
46 virtual int hostIdentifier(); | 46 virtual int hostIdentifier(); |
47 virtual void forceRepaint(); | 47 virtual void forceRepaint(); |
48 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature, | 48 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature, |
49 bool enabled); | 49 bool enabled); |
50 virtual void runtimePropertyChanged(const WebKit::WebString& name, | 50 virtual void runtimePropertyChanged(const WebKit::WebString& name, |
51 const WebKit::WebString& value); | 51 const WebKit::WebString& value); |
52 virtual WebKit::WebCString injectedScriptSource(); | |
53 virtual WebKit::WebCString debuggerScriptSource(); | 52 virtual WebKit::WebCString debuggerScriptSource(); |
54 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* | 53 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* |
55 createClientMessageLoop(); | 54 createClientMessageLoop(); |
56 virtual bool exposeV8DebuggerProtocol(); | 55 virtual bool exposeV8DebuggerProtocol(); |
57 | 56 |
58 // Returns agent instance for its host id. | 57 // Returns agent instance for its host id. |
59 static DevToolsAgent* FromHostId(int host_id); | 58 static DevToolsAgent* FromHostId(int host_id); |
60 | 59 |
61 RenderView* render_view() { return render_view_; } | 60 RenderView* render_view() { return render_view_; } |
62 | 61 |
(...skipping 12 matching lines...) Expand all Loading... |
75 static std::map<int, DevToolsAgent*> agent_for_routing_id_; | 74 static std::map<int, DevToolsAgent*> agent_for_routing_id_; |
76 | 75 |
77 int routing_id_; // View routing id that we can access from IO thread. | 76 int routing_id_; // View routing id that we can access from IO thread. |
78 RenderView* render_view_; | 77 RenderView* render_view_; |
79 bool expose_v8_debugger_protocol_; | 78 bool expose_v8_debugger_protocol_; |
80 | 79 |
81 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 80 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
82 }; | 81 }; |
83 | 82 |
84 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 83 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
OLD | NEW |