Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: webkit/glue/webdevtoolsclient.h

Issue 264077: Convert devtools interfaces over to using WebString.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webdevtoolsagent_impl.cc ('k') | webkit/glue/webdevtoolsclient_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
9 #include "base/basictypes.h" 8 #include "base/basictypes.h"
10 9
11 class WebDevToolsClientDelegate; 10 class WebDevToolsClientDelegate;
12 class WebView; 11 class WebView;
13 12
13 namespace WebKit {
14 class WebString;
15 }
16
14 // WebDevToolsClient represents DevTools client sitting in the Glue. It provides 17 // WebDevToolsClient represents DevTools client sitting in the Glue. It provides
15 // direct and delegate Apis to the host. 18 // direct and delegate Apis to the host.
16 class WebDevToolsClient { 19 class WebDevToolsClient {
17 public: 20 public:
18 static WebDevToolsClient* Create( 21 static WebDevToolsClient* Create(
19 WebView* view, 22 WebView* view,
20 WebDevToolsClientDelegate* delegate, 23 WebDevToolsClientDelegate* delegate,
21 const std::string& application_locale); 24 const WebKit::WebString& application_locale);
22 25
23 WebDevToolsClient() {} 26 WebDevToolsClient() {}
24 virtual ~WebDevToolsClient() {} 27 virtual ~WebDevToolsClient() {}
25 28
26 virtual void DispatchMessageFromAgent(const std::string& class_name, 29 virtual void DispatchMessageFromAgent(const WebKit::WebString& class_name,
27 const std::string& method_name, 30 const WebKit::WebString& method_name,
28 const std::string& param1, 31 const WebKit::WebString& param1,
29 const std::string& param2, 32 const WebKit::WebString& param2,
30 const std::string& param3) = 0; 33 const WebKit::WebString& param3) = 0;
31 34
32 private: 35 private:
33 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClient); 36 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClient);
34 }; 37 };
35 38
36 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ 39 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_
OLDNEW
« no previous file with comments | « webkit/glue/webdevtoolsagent_impl.cc ('k') | webkit/glue/webdevtoolsclient_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698