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

Side by Side Diff: content/public/browser/devtools_agent_host.h

Issue 2874613003: [DevTools] Support multiple clients in DevToolsAgentHost (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « content/browser/devtools/worker_devtools_agent_host.cc ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 static void RemoveObserver(DevToolsAgentHostObserver*); 137 static void RemoveObserver(DevToolsAgentHostObserver*);
138 138
139 // Attaches |client| to this agent host to start debugging. 139 // Attaches |client| to this agent host to start debugging.
140 // Returns true iff attach succeeded. 140 // Returns true iff attach succeeded.
141 virtual bool AttachClient(DevToolsAgentHostClient* client) = 0; 141 virtual bool AttachClient(DevToolsAgentHostClient* client) = 0;
142 142
143 // Attaches |client| to this agent host to start debugging. Disconnects 143 // Attaches |client| to this agent host to start debugging. Disconnects
144 // any existing clients. 144 // any existing clients.
145 virtual void ForceAttachClient(DevToolsAgentHostClient* client) = 0; 145 virtual void ForceAttachClient(DevToolsAgentHostClient* client) = 0;
146 146
147 // Attaches |client| to this agent host to start debugging. This method
148 // can attach more than one client (as opposite to AttachClient).
149 // Returns true iff attach succeeded.
150 virtual bool AttachMultiClient(DevToolsAgentHostClient* client) = 0;
151
147 // Already attached client detaches from this agent host to stop debugging it. 152 // Already attached client detaches from this agent host to stop debugging it.
148 // Returns true iff detach succeeded. 153 // Returns true iff detach succeeded.
149 virtual bool DetachClient(DevToolsAgentHostClient* client) = 0; 154 virtual bool DetachClient(DevToolsAgentHostClient* client) = 0;
150 155
151 // Returns true if there is a client attached. 156 // Returns true if there is a client attached.
152 virtual bool IsAttached() = 0; 157 virtual bool IsAttached() = 0;
153 158
154 // Sends |message| from |client| to the agent. 159 // Sends |message| from |client| to the agent.
155 // Returns true if the message is dispatched and handled. 160 // Returns true if the message is dispatched and handled.
156 virtual bool DispatchProtocolMessage(DevToolsAgentHostClient* client, 161 virtual bool DispatchProtocolMessage(DevToolsAgentHostClient* client,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 static void DetachAllClients(); 219 static void DetachAllClients();
215 220
216 protected: 221 protected:
217 friend class base::RefCounted<DevToolsAgentHost>; 222 friend class base::RefCounted<DevToolsAgentHost>;
218 virtual ~DevToolsAgentHost() {} 223 virtual ~DevToolsAgentHost() {}
219 }; 224 };
220 225
221 } // namespace content 226 } // namespace content
222 227
223 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ 228 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/worker_devtools_agent_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698