| 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 WEBKIT_GLUE_WEBDEVTOOLSAGENT_DELEGATE_H_ | 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSAGENT_DELEGATE_H_ |
| 6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_DELEGATE_H_ | 6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| 11 class WebDevToolsAgentDelegate { | 11 class WebDevToolsAgentDelegate { |
| 12 public: | 12 public: |
| 13 WebDevToolsAgentDelegate() {} | 13 WebDevToolsAgentDelegate() {} |
| 14 virtual ~WebDevToolsAgentDelegate() {} | 14 virtual ~WebDevToolsAgentDelegate() {} |
| 15 | 15 |
| 16 virtual void SendMessageToClient(const std::string& class_name, | 16 virtual void SendMessageToClient(const std::string& class_name, |
| 17 const std::string& method_name, | 17 const std::string& method_name, |
| 18 const std::string& raw_msg) = 0; | 18 const std::string& param1, |
| 19 const std::string& param2, |
| 20 const std::string& param3) = 0; |
| 19 | 21 |
| 20 // Invalidates widget which leads to the repaint. | 22 // Invalidates widget which leads to the repaint. |
| 21 virtual void ForceRepaint() = 0; | 23 virtual void ForceRepaint() = 0; |
| 22 | 24 |
| 23 // Returns the id of the entity hosting this agent. | 25 // Returns the id of the entity hosting this agent. |
| 24 virtual int GetHostId() = 0; | 26 virtual int GetHostId() = 0; |
| 25 | 27 |
| 26 private: | 28 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgentDelegate); | 29 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgentDelegate); |
| 28 }; | 30 }; |
| 29 | 31 |
| 30 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_DELEGATE_H_ | 32 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_DELEGATE_H_ |
| OLD | NEW |