| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 RenderView* render_view() { return render_view_; } | 60 RenderView* render_view() { return render_view_; } |
| 61 | 61 |
| 62 WebKit::WebDevToolsAgent* GetWebAgent(); | 62 WebKit::WebDevToolsAgent* GetWebAgent(); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 friend class DevToolsAgentFilter; | 65 friend class DevToolsAgentFilter; |
| 66 | 66 |
| 67 void OnAttach(const std::vector<std::string>& runtime_features); | 67 void OnAttach(const std::vector<std::string>& runtime_features); |
| 68 void OnDetach(); | 68 void OnDetach(); |
| 69 void OnFrontendLoaded(); |
| 69 void OnDispatchOnInspectorBackend(const std::string& message); | 70 void OnDispatchOnInspectorBackend(const std::string& message); |
| 70 void OnInspectElement(int x, int y); | 71 void OnInspectElement(int x, int y); |
| 71 void OnSetApuAgentEnabled(bool enabled); | 72 void OnSetApuAgentEnabled(bool enabled); |
| 72 | 73 |
| 73 static std::map<int, DevToolsAgent*> agent_for_routing_id_; | 74 static std::map<int, DevToolsAgent*> agent_for_routing_id_; |
| 74 | 75 |
| 75 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. |
| 76 RenderView* render_view_; | 77 RenderView* render_view_; |
| 77 bool expose_v8_debugger_protocol_; | 78 bool expose_v8_debugger_protocol_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 80 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 83 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
| OLD | NEW |