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

Side by Side Diff: content/browser/devtools/ipc_devtools_agent_host.cc

Issue 467653002: Revert of [DevTools] Make DevTools clients talk directly to DevToolsAgentHost instead of using DevToolsManage… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "content/browser/devtools/ipc_devtools_agent_host.h" 5 #include "content/browser/devtools/ipc_devtools_agent_host.h"
6 6
7 #include "content/common/devtools_messages.h" 7 #include "content/common/devtools_messages.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 void IPCDevToolsAgentHost::Attach() { 11 void IPCDevToolsAgentHost::Attach() {
12 SendMessageToAgent(new DevToolsAgentMsg_Attach(MSG_ROUTING_NONE, GetId())); 12 SendMessageToAgent(new DevToolsAgentMsg_Attach(MSG_ROUTING_NONE, GetId()));
13 OnClientAttached(); 13 OnClientAttached();
14 } 14 }
15 15
16 void IPCDevToolsAgentHost::Detach() { 16 void IPCDevToolsAgentHost::Detach() {
17 SendMessageToAgent(new DevToolsAgentMsg_Detach(MSG_ROUTING_NONE)); 17 SendMessageToAgent(new DevToolsAgentMsg_Detach(MSG_ROUTING_NONE));
18 OnClientDetached(); 18 OnClientDetached();
19 } 19 }
20 20
21 void IPCDevToolsAgentHost::DispatchProtocolMessage( 21 void IPCDevToolsAgentHost::DispatchOnInspectorBackend(
22 const std::string& message) { 22 const std::string& message) {
23 SendMessageToAgent(new DevToolsAgentMsg_DispatchOnInspectorBackend( 23 SendMessageToAgent(new DevToolsAgentMsg_DispatchOnInspectorBackend(
24 MSG_ROUTING_NONE, message)); 24 MSG_ROUTING_NONE, message));
25 } 25 }
26 26
27 void IPCDevToolsAgentHost::InspectElement(int x, int y) { 27 void IPCDevToolsAgentHost::InspectElement(int x, int y) {
28 SendMessageToAgent(new DevToolsAgentMsg_InspectElement(MSG_ROUTING_NONE, 28 SendMessageToAgent(new DevToolsAgentMsg_InspectElement(MSG_ROUTING_NONE,
29 GetId(), x, y)); 29 GetId(), x, y));
30 } 30 }
31 31
32 IPCDevToolsAgentHost::~IPCDevToolsAgentHost() { 32 IPCDevToolsAgentHost::~IPCDevToolsAgentHost() {
33 } 33 }
34 34
35 void IPCDevToolsAgentHost::Reattach(const std::string& saved_agent_state) { 35 void IPCDevToolsAgentHost::Reattach(const std::string& saved_agent_state) {
36 SendMessageToAgent(new DevToolsAgentMsg_Reattach( 36 SendMessageToAgent(new DevToolsAgentMsg_Reattach(
37 MSG_ROUTING_NONE, GetId(), saved_agent_state)); 37 MSG_ROUTING_NONE, GetId(), saved_agent_state));
38 OnClientAttached(); 38 OnClientAttached();
39 } 39 }
40 40
41 } // namespace content 41 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/ipc_devtools_agent_host.h ('k') | content/browser/devtools/render_view_devtools_agent_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698