OLD | NEW |
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 Loading... |
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. | 186 // Returns the frontend url for this host. |
187 virtual std::string GetFrontendURL() = 0; | 187 virtual std::string GetFrontendURL() = 0; |
188 | 188 |
189 // Activates agent host. Returns false if the operation failed. | 189 // Activates agent host. Returns false if the operation failed. |
190 virtual bool Activate() = 0; | 190 virtual bool Activate() = 0; |
191 | 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; |
(...skipping 11 matching lines...) Expand all Loading... |
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_ |
OLD | NEW |