OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_DEVTOOLS_AGENT_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_AGENT_H_ |
6 #define CONTENT_RENDERER_DEVTOOLS_AGENT_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_AGENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 static DevToolsAgent* FromHostId(int host_id); | 32 static DevToolsAgent* FromHostId(int host_id); |
33 | 33 |
34 WebKit::WebDevToolsAgent* GetWebAgent(); | 34 WebKit::WebDevToolsAgent* GetWebAgent(); |
35 | 35 |
36 bool IsAttached(); | 36 bool IsAttached(); |
37 | 37 |
38 private: | 38 private: |
39 friend class DevToolsAgentFilter; | 39 friend class DevToolsAgentFilter; |
40 | 40 |
41 // RenderView::Observer implementation. | 41 // RenderView::Observer implementation. |
42 virtual bool OnMessageReceived(const IPC::Message& message); | 42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
43 | 43 |
44 // WebDevToolsAgentClient implementation | 44 // WebDevToolsAgentClient implementation |
45 virtual void sendMessageToInspectorFrontend(const WebKit::WebString& data); | 45 virtual void sendMessageToInspectorFrontend(const WebKit::WebString& data); |
46 virtual void sendDebuggerOutput(const WebKit::WebString& data); | 46 virtual void sendDebuggerOutput(const WebKit::WebString& data); |
47 | 47 |
48 virtual int hostIdentifier(); | 48 virtual int hostIdentifier(); |
49 virtual void saveAgentRuntimeState(const WebKit::WebString& state); | 49 virtual void saveAgentRuntimeState(const WebKit::WebString& state); |
50 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* | 50 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* |
51 createClientMessageLoop(); | 51 createClientMessageLoop(); |
52 virtual bool exposeV8DebuggerProtocol(); | 52 virtual bool exposeV8DebuggerProtocol(); |
(...skipping 10 matching lines...) Expand all Loading... |
63 void OnNavigate(); | 63 void OnNavigate(); |
64 void OnSetupDevToolsClient(); | 64 void OnSetupDevToolsClient(); |
65 | 65 |
66 bool is_attached_; | 66 bool is_attached_; |
67 bool expose_v8_debugger_protocol_; | 67 bool expose_v8_debugger_protocol_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 69 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
70 }; | 70 }; |
71 | 71 |
72 #endif // CONTENT_RENDERER_DEVTOOLS_AGENT_H_ | 72 #endif // CONTENT_RENDERER_DEVTOOLS_AGENT_H_ |
OLD | NEW |