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

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

Issue 2361613002: DevTools: untangle device discovery request from the devtools android bridge. (Closed)
Patch Set: for landing Created 4 years, 3 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
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // Returns the host description. 177 // Returns the host description.
178 virtual std::string GetDescription() = 0; 178 virtual std::string GetDescription() = 0;
179 179
180 // Returns url associated with agent host. 180 // Returns url associated with agent host.
181 virtual GURL GetURL() = 0; 181 virtual GURL GetURL() = 0;
182 182
183 // Returns the favicon url for this host. 183 // Returns the favicon url for this host.
184 virtual GURL GetFaviconURL() = 0; 184 virtual GURL GetFaviconURL() = 0;
185 185
186 // Returns the favicon url for this host.
dgozman 2016/09/23 01:05:28 Wrong comment.
187 virtual std::string GetFrontendURL() = 0;
188
186 // Activates agent host. Returns false if the operation failed. 189 // Activates agent host. Returns false if the operation failed.
187 virtual bool Activate() = 0; 190 virtual bool Activate() = 0;
188 191
189 // Opens devtools for this agent host. Returns false if the operation failed.
190 virtual bool Inspect() = 0;
191
192 // Reloads the host. 192 // Reloads the host.
193 virtual void Reload() = 0; 193 virtual void Reload() = 0;
194 194
195 // Closes agent host. Returns false if the operation failed. 195 // Closes agent host. Returns false if the operation failed.
196 virtual bool Close() = 0; 196 virtual bool Close() = 0;
197 197
198 // Returns the time when the host was last active. 198 // Returns the time when the host was last active.
199 virtual base::TimeTicks GetLastActivityTime() = 0; 199 virtual base::TimeTicks GetLastActivityTime() = 0;
200 200
201 // Terminates all debugging sessions and detaches all clients. 201 // Terminates all debugging sessions and detaches all clients.
202 static void DetachAllClients(); 202 static void DetachAllClients();
203 203
204 typedef base::Callback<void(DevToolsAgentHost*, bool attached)> 204 typedef base::Callback<void(DevToolsAgentHost*, bool attached)>
205 AgentStateCallback; 205 AgentStateCallback;
206 206
207 static void AddAgentStateCallback(const AgentStateCallback& callback); 207 static void AddAgentStateCallback(const AgentStateCallback& callback);
208 static void RemoveAgentStateCallback(const AgentStateCallback& callback); 208 static void RemoveAgentStateCallback(const AgentStateCallback& callback);
209 209
210 protected: 210 protected:
211 friend class base::RefCounted<DevToolsAgentHost>; 211 friend class base::RefCounted<DevToolsAgentHost>;
212 virtual ~DevToolsAgentHost() {} 212 virtual ~DevToolsAgentHost() {}
213 }; 213 };
214 214
215 } // namespace content 215 } // namespace content
216 216
217 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ 217 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698