summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/devtools_agent.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 03:31:55 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 03:31:55 +0000
commitcd1c89e833b7e67b7a7ca8799122e07b65999771 (patch)
tree8be5bb7ffacaee015edc085026d811a571fc7cc0 /chrome/renderer/devtools_agent.h
parentb67d748a27218fe026449cd98b1ac334c1266d4c (diff)
downloadchromium_src-cd1c89e833b7e67b7a7ca8799122e07b65999771.zip
chromium_src-cd1c89e833b7e67b7a7ca8799122e07b65999771.tar.gz
chromium_src-cd1c89e833b7e67b7a7ca8799122e07b65999771.tar.bz2
Move WebDevToolsAgent{Delegate} into the WebKit API.
Moves corresponding WebView and WebViewDelegate methods too. This uses the term "Frontend" for what was previously known as "Client" in the devtools interfaces. This is to avoid awkward "ClientClient" naming. Frontend was Pavel Feldman's suggested renaming. In a follow up patch, I will be renaming WebDevToolsClient{Delegate} to WebDevToolsFrontend{Client}. R=dglazkov BUG=24597 TEST=none Review URL: http://codereview.chromium.org/287009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/devtools_agent.h')
-rw-r--r--chrome/renderer/devtools_agent.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/chrome/renderer/devtools_agent.h b/chrome/renderer/devtools_agent.h
index eeae60a..2110841 100644
--- a/chrome/renderer/devtools_agent.h
+++ b/chrome/renderer/devtools_agent.h
@@ -8,20 +8,24 @@
#include <map>
#include <string>
-#include "webkit/glue/webdevtoolsagent_delegate.h"
+#include "base/basictypes.h"
+#include "webkit/api/public/WebDevToolsAgentClient.h"
namespace IPC {
class Message;
}
-class RenderView;
+namespace WebKit {
class WebDevToolsAgent;
+}
+
+class RenderView;
// DevToolsAgent belongs to the inspectable RenderView and provides Glue's
// agents with the communication capabilities. All messages from/to Glue's
// agents infrastructure are flowing through this comminucation agent.
// There is a corresponding DevToolsClient object on the client side.
-class DevToolsAgent : public WebDevToolsAgentDelegate {
+class DevToolsAgent : public WebKit::WebDevToolsAgentClient {
public:
DevToolsAgent(int routing_id, RenderView* view);
virtual ~DevToolsAgent();
@@ -31,21 +35,21 @@ class DevToolsAgent : public WebDevToolsAgentDelegate {
// IPC message interceptor. Called on the Render thread.
virtual bool OnMessageReceived(const IPC::Message& message);
- // WebDevToolsAgentDelegate implementation
- virtual void SendMessageToClient(const WebKit::WebString& class_name,
- const WebKit::WebString& method_name,
- const WebKit::WebString& param1,
- const WebKit::WebString& param2,
- const WebKit::WebString& param3);
- virtual int GetHostId();
- virtual void ForceRepaint();
+ // WebDevToolsAgentClient implementation
+ virtual void sendMessageToFrontend(const WebKit::WebString& class_name,
+ const WebKit::WebString& method_name,
+ const WebKit::WebString& param1,
+ const WebKit::WebString& param2,
+ const WebKit::WebString& param3);
+ virtual int hostIdentifier();
+ virtual void forceRepaint();
// Returns agent instance for its host id.
static DevToolsAgent* FromHostId(int host_id);
RenderView* render_view() { return view_; }
- WebDevToolsAgent* GetWebAgent();
+ WebKit::WebDevToolsAgent* GetWebAgent();
private:
friend class DevToolsAgentFilter;