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

Unified Diff: chrome/renderer/devtools_client.cc

Issue 3005044: DevTools: Get rid of DevTools RPC. (Closed)
Patch Set: More files removed Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/devtools_client.h ('k') | webkit/glue/devtools_message_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/devtools_client.cc
diff --git a/chrome/renderer/devtools_client.cc b/chrome/renderer/devtools_client.cc
index 3620fb1e5d6db2ed62958f4c6559dded5933ea8b..81b6f734834e2d9f19ea5a86aeead162ad876a5b 100644
--- a/chrome/renderer/devtools_client.cc
+++ b/chrome/renderer/devtools_client.cc
@@ -12,7 +12,6 @@
#include "chrome/renderer/render_thread.h"
#include "chrome/renderer/render_view.h"
#include "third_party/WebKit/WebKit/chromium/public/WebDevToolsFrontend.h"
-#include "third_party/WebKit/WebKit/chromium/public/WebDevToolsMessageData.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
using WebKit::WebDevToolsFrontend;
@@ -42,16 +41,16 @@ bool DevToolsClient::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(DevToolsClient, message)
- IPC_MESSAGE_HANDLER(DevToolsClientMsg_RpcMessage, OnRpcMessage)
+ IPC_MESSAGE_HANDLER(DevToolsClientMsg_DispatchOnInspectorFrontend,
+ OnDispatchOnInspectorFrontend)
IPC_MESSAGE_UNHANDLED(handled = false);
IPC_END_MESSAGE_MAP()
return handled;
}
-void DevToolsClient::sendMessageToAgent(
- const WebKit::WebDevToolsMessageData& data) {
- Send(DevToolsAgentMsg_RpcMessage(DevToolsMessageData(data)));
+void DevToolsClient::sendMessageToBackend(const WebString& message) {
+ Send(DevToolsAgentMsg_DispatchOnInspectorBackend(message.utf8()));
}
void DevToolsClient::sendDebuggerCommandToAgent(const WebString& command) {
@@ -82,9 +81,10 @@ void DevToolsClient::requestUndockWindow() {
render_view_->routing_id()));
}
-void DevToolsClient::OnRpcMessage(const DevToolsMessageData& data) {
- web_tools_frontend_->dispatchMessageFromAgent(
- data.ToWebDevToolsMessageData());
+void DevToolsClient::OnDispatchOnInspectorFrontend(
+ const std::string& message) {
+ web_tools_frontend_->dispatchOnInspectorFrontend(
+ WebString::fromUTF8(message));
}
bool DevToolsClient::shouldHideScriptsPanel() {
« no previous file with comments | « chrome/renderer/devtools_client.h ('k') | webkit/glue/devtools_message_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698