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

Unified Diff: chrome/renderer/devtools_agent_filter.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_agent_filter.h ('k') | chrome/renderer/devtools_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/devtools_agent_filter.cc
diff --git a/chrome/renderer/devtools_agent_filter.cc b/chrome/renderer/devtools_agent_filter.cc
index 1a455f5a4af6993a4f3027c8402ffdd10967a3df..cd836e5c702a24b4c7d8b7615bf536669a84cfa0 100644
--- a/chrome/renderer/devtools_agent_filter.cc
+++ b/chrome/renderer/devtools_agent_filter.cc
@@ -11,14 +11,9 @@
#include "chrome/renderer/plugin_channel_host.h"
#include "chrome/renderer/render_view.h"
#include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h"
-#include "third_party/WebKit/WebKit/chromium/public/WebDevToolsMessageData.h"
-#include "third_party/WebKit/WebKit/chromium/public/WebDevToolsMessageTransport.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
-#include "webkit/glue/devtools_message_data.h"
using WebKit::WebDevToolsAgent;
-using WebKit::WebDevToolsMessageData;
-using WebKit::WebDevToolsMessageTransport;
using WebKit::WebString;
// static
@@ -52,7 +47,6 @@ bool DevToolsAgentFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(DevToolsAgentMsg_DebuggerCommand, OnDebuggerCommand)
IPC_MESSAGE_HANDLER(DevToolsAgentMsg_DebuggerPauseScript,
OnDebuggerPauseScript)
- IPC_MESSAGE_HANDLER(DevToolsAgentMsg_RpcMessage, OnRpcMessage)
IPC_MESSAGE_UNHANDLED(message_handled_ = false)
IPC_END_MESSAGE_MAP()
return message_handled_;
@@ -66,29 +60,3 @@ void DevToolsAgentFilter::OnDebuggerCommand(const std::string& command) {
void DevToolsAgentFilter::OnDebuggerPauseScript() {
WebDevToolsAgent::debuggerPauseScript();
}
-
-namespace {
-
-class WebDevToolsMessageTransportImpl : public WebDevToolsMessageTransport {
- public:
- void sendMessageToFrontendOnIOThread(const WebDevToolsMessageData& data) {
- DevToolsAgentFilter::SendRpcMessage(DevToolsMessageData(data));
- }
-};
-
-} // namespace
-
-void DevToolsAgentFilter::OnRpcMessage(const DevToolsMessageData& data) {
- WebDevToolsMessageTransportImpl transport;
- message_handled_ = WebDevToolsAgent::dispatchMessageFromFrontendOnIOThread(
- &transport,
- data.ToWebDevToolsMessageData());
-}
-
-// static
-void DevToolsAgentFilter::SendRpcMessage(const DevToolsMessageData& data) {
- IPC::Message* m = new ViewHostMsg_ForwardToDevToolsClient(
- current_routing_id_,
- DevToolsClientMsg_RpcMessage(data));
- channel_->Send(m);
-}
« no previous file with comments | « chrome/renderer/devtools_agent_filter.h ('k') | chrome/renderer/devtools_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698