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