| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // If |active_port_output_directory| is non-empty, it is assumed the | 113 // If |active_port_output_directory| is non-empty, it is assumed the |
| 114 // socket_factory was initialized with an ephemeral port (0). The | 114 // socket_factory was initialized with an ephemeral port (0). The |
| 115 // port selected by the OS will be written to a well-known file in | 115 // port selected by the OS will be written to a well-known file in |
| 116 // the output directory. | 116 // the output directory. |
| 117 static void StartRemoteDebuggingServer( | 117 static void StartRemoteDebuggingServer( |
| 118 std::unique_ptr<DevToolsSocketFactory> server_socket_factory, | 118 std::unique_ptr<DevToolsSocketFactory> server_socket_factory, |
| 119 const std::string& frontend_url, | 119 const std::string& frontend_url, |
| 120 const base::FilePath& active_port_output_directory, | 120 const base::FilePath& active_port_output_directory, |
| 121 const base::FilePath& debug_frontend_dir, | 121 const base::FilePath& debug_frontend_dir, |
| 122 const std::string& product_name, | 122 const std::string& product_name, |
| 123 const std::string& user_agent); | 123 const std::string& user_agent, |
| 124 const std::string& js_engine_version); |
| 124 | 125 |
| 125 // Stops remote debugging. | 126 // Stops remote debugging. |
| 126 static void StopRemoteDebuggingServer(); | 127 static void StopRemoteDebuggingServer(); |
| 127 | 128 |
| 128 // Observer is notified about changes in DevToolsAgentHosts. | 129 // Observer is notified about changes in DevToolsAgentHosts. |
| 129 static void AddObserver(DevToolsAgentHostObserver*); | 130 static void AddObserver(DevToolsAgentHostObserver*); |
| 130 static void RemoveObserver(DevToolsAgentHostObserver*); | 131 static void RemoveObserver(DevToolsAgentHostObserver*); |
| 131 | 132 |
| 132 // Attaches |client| to this agent host to start debugging. | 133 // Attaches |client| to this agent host to start debugging. |
| 133 // Returns true iff attach succeeded. | 134 // Returns true iff attach succeeded. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 static void DetachAllClients(); | 208 static void DetachAllClients(); |
| 208 | 209 |
| 209 protected: | 210 protected: |
| 210 friend class base::RefCounted<DevToolsAgentHost>; | 211 friend class base::RefCounted<DevToolsAgentHost>; |
| 211 virtual ~DevToolsAgentHost() {} | 212 virtual ~DevToolsAgentHost() {} |
| 212 }; | 213 }; |
| 213 | 214 |
| 214 } // namespace content | 215 } // namespace content |
| 215 | 216 |
| 216 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 217 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |