| 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_WEBDEVTOOLSCLIENT_H_ | 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ |
| 6 #define WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ | 6 #define WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class WebDevToolsClientDelegate; | 10 class WebDevToolsClientDelegate; |
| 11 class WebView; | |
| 12 | 11 |
| 13 namespace WebKit { | 12 namespace WebKit { |
| 14 class WebString; | 13 class WebString; |
| 14 class WebView; |
| 15 } | 15 } |
| 16 | 16 |
| 17 // WebDevToolsClient represents DevTools client sitting in the Glue. It provides | 17 // WebDevToolsClient represents DevTools client sitting in the Glue. It provides |
| 18 // direct and delegate Apis to the host. | 18 // direct and delegate Apis to the host. |
| 19 class WebDevToolsClient { | 19 class WebDevToolsClient { |
| 20 public: | 20 public: |
| 21 static WebDevToolsClient* Create( | 21 static WebDevToolsClient* Create( |
| 22 WebView* view, | 22 WebKit::WebView* view, |
| 23 WebDevToolsClientDelegate* delegate, | 23 WebDevToolsClientDelegate* delegate, |
| 24 const WebKit::WebString& application_locale); | 24 const WebKit::WebString& application_locale); |
| 25 | 25 |
| 26 WebDevToolsClient() {} | 26 WebDevToolsClient() {} |
| 27 virtual ~WebDevToolsClient() {} | 27 virtual ~WebDevToolsClient() {} |
| 28 | 28 |
| 29 virtual void DispatchMessageFromAgent(const WebKit::WebString& class_name, | 29 virtual void DispatchMessageFromAgent(const WebKit::WebString& class_name, |
| 30 const WebKit::WebString& method_name, | 30 const WebKit::WebString& method_name, |
| 31 const WebKit::WebString& param1, | 31 const WebKit::WebString& param1, |
| 32 const WebKit::WebString& param2, | 32 const WebKit::WebString& param2, |
| 33 const WebKit::WebString& param3) = 0; | 33 const WebKit::WebString& param3) = 0; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClient); | 36 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClient); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ | 39 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ |
| OLD | NEW |