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