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