| 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 <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 114 | 114 | 
| 115   // Returns url associated with agent host. | 115   // Returns url associated with agent host. | 
| 116   virtual GURL GetURL() = 0; | 116   virtual GURL GetURL() = 0; | 
| 117 | 117 | 
| 118   // Activates agent host. Returns false if the operation failed. | 118   // Activates agent host. Returns false if the operation failed. | 
| 119   virtual bool Activate() = 0; | 119   virtual bool Activate() = 0; | 
| 120 | 120 | 
| 121   // Closes agent host. Returns false if the operation failed. | 121   // Closes agent host. Returns false if the operation failed. | 
| 122   virtual bool Close() = 0; | 122   virtual bool Close() = 0; | 
| 123 | 123 | 
|  | 124   virtual void OpenWorkerInspector(BrowserContext* context, | 
|  | 125                                    const std::string& id) = 0; | 
|  | 126 | 
| 124   // Terminates all debugging sessions and detaches all clients. | 127   // Terminates all debugging sessions and detaches all clients. | 
| 125   static void DetachAllClients(); | 128   static void DetachAllClients(); | 
| 126 | 129 | 
| 127   typedef base::Callback<void(DevToolsAgentHost*, bool attached)> | 130   typedef base::Callback<void(DevToolsAgentHost*, bool attached)> | 
| 128       AgentStateCallback; | 131       AgentStateCallback; | 
| 129 | 132 | 
| 130   static void AddAgentStateCallback(const AgentStateCallback& callback); | 133   static void AddAgentStateCallback(const AgentStateCallback& callback); | 
| 131   static void RemoveAgentStateCallback(const AgentStateCallback& callback); | 134   static void RemoveAgentStateCallback(const AgentStateCallback& callback); | 
| 132 | 135 | 
| 133  protected: | 136  protected: | 
| 134   friend class base::RefCounted<DevToolsAgentHost>; | 137   friend class base::RefCounted<DevToolsAgentHost>; | 
| 135   virtual ~DevToolsAgentHost() {} | 138   virtual ~DevToolsAgentHost() {} | 
| 136 }; | 139 }; | 
| 137 | 140 | 
| 138 }  // namespace content | 141 }  // namespace content | 
| 139 | 142 | 
| 140 #endif  // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 143 #endif  // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 
| OLD | NEW | 
|---|