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 25 matching lines...) Expand all Loading... |
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) OVERRIDE; | 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); | |
47 | 46 |
48 virtual int hostIdentifier(); | 47 virtual int hostIdentifier(); |
49 virtual void saveAgentRuntimeState(const WebKit::WebString& state); | 48 virtual void saveAgentRuntimeState(const WebKit::WebString& state); |
50 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* | 49 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* |
51 createClientMessageLoop(); | 50 createClientMessageLoop(); |
52 virtual bool exposeV8DebuggerProtocol(); | |
53 virtual void clearBrowserCache(); | 51 virtual void clearBrowserCache(); |
54 virtual void clearBrowserCookies(); | 52 virtual void clearBrowserCookies(); |
55 | 53 |
56 void OnAttach(); | 54 void OnAttach(); |
57 void OnReattach(const std::string& agent_state); | 55 void OnReattach(const std::string& agent_state); |
58 void OnDetach(); | 56 void OnDetach(); |
59 void OnFrontendLoaded(); | 57 void OnFrontendLoaded(); |
60 void OnDispatchOnInspectorBackend(const std::string& message); | 58 void OnDispatchOnInspectorBackend(const std::string& message); |
61 void OnInspectElement(int x, int y); | 59 void OnInspectElement(int x, int y); |
62 void OnSetApuAgentEnabled(bool enabled); | 60 void OnSetApuAgentEnabled(bool enabled); |
63 void OnNavigate(); | 61 void OnNavigate(); |
64 void OnSetupDevToolsClient(); | 62 void OnSetupDevToolsClient(); |
65 | 63 |
66 bool is_attached_; | 64 bool is_attached_; |
67 bool expose_v8_debugger_protocol_; | |
68 | 65 |
69 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 66 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
70 }; | 67 }; |
71 | 68 |
72 #endif // CONTENT_RENDERER_DEVTOOLS_AGENT_H_ | 69 #endif // CONTENT_RENDERER_DEVTOOLS_AGENT_H_ |
OLD | NEW |