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