| 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 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 DevToolsAgent(int routing_id, RenderView* view); | 26 DevToolsAgent(int routing_id, RenderView* view); |
| 27 virtual ~DevToolsAgent(); | 27 virtual ~DevToolsAgent(); |
| 28 | 28 |
| 29 void OnNavigate(); | 29 void OnNavigate(); |
| 30 | 30 |
| 31 // IPC message interceptor. Called on the Render thread. | 31 // IPC message interceptor. Called on the Render thread. |
| 32 virtual bool OnMessageReceived(const IPC::Message& message); | 32 virtual bool OnMessageReceived(const IPC::Message& message); |
| 33 | 33 |
| 34 // WebDevToolsAgentDelegate implementation | 34 // WebDevToolsAgentDelegate implementation |
| 35 virtual void SendMessageToClient(const std::string& class_name, | 35 virtual void SendMessageToClient(const WebKit::WebString& class_name, |
| 36 const std::string& method_name, | 36 const WebKit::WebString& method_name, |
| 37 const std::string& param1, | 37 const WebKit::WebString& param1, |
| 38 const std::string& param2, | 38 const WebKit::WebString& param2, |
| 39 const std::string& param3); | 39 const WebKit::WebString& param3); |
| 40 virtual int GetHostId(); | 40 virtual int GetHostId(); |
| 41 virtual void ForceRepaint(); | 41 virtual void ForceRepaint(); |
| 42 | 42 |
| 43 // Returns agent instance for its host id. | 43 // Returns agent instance for its host id. |
| 44 static DevToolsAgent* FromHostId(int host_id); | 44 static DevToolsAgent* FromHostId(int host_id); |
| 45 | 45 |
| 46 RenderView* render_view() { return view_; } | 46 RenderView* render_view() { return view_; } |
| 47 | 47 |
| 48 WebDevToolsAgent* GetWebAgent(); | 48 WebDevToolsAgent* GetWebAgent(); |
| 49 | 49 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 62 | 62 |
| 63 static std::map<int, DevToolsAgent*> agent_for_routing_id_; | 63 static std::map<int, DevToolsAgent*> agent_for_routing_id_; |
| 64 | 64 |
| 65 int routing_id_; // View routing id that we can access from IO thread. | 65 int routing_id_; // View routing id that we can access from IO thread. |
| 66 RenderView* view_; | 66 RenderView* view_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 68 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 71 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
| OLD | NEW |