| 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_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "net/server/http_server.h" | 21 #include "net/server/http_server.h" |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class DictionaryValue; | 24 class DictionaryValue; |
| 25 class ListValue; | 25 class ListValue; |
| 26 class Thread; | 26 class Thread; |
| 27 class Value; | 27 class Value; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace net { | 30 namespace net { |
| 31 class IPEndPoint; |
| 31 class ServerSocketFactory; | 32 class ServerSocketFactory; |
| 32 class URLRequestContextGetter; | 33 class URLRequestContextGetter; |
| 33 } | 34 } |
| 34 | 35 |
| 35 namespace content { | 36 namespace content { |
| 36 | 37 |
| 37 class DevToolsHttpHandlerImpl | 38 class DevToolsHttpHandlerImpl |
| 38 : public DevToolsHttpHandler, | 39 : public DevToolsHttpHandler, |
| 39 public base::RefCountedThreadSafe<DevToolsHttpHandlerImpl>, | 40 public base::RefCountedThreadSafe<DevToolsHttpHandlerImpl>, |
| 40 public net::HttpServer::Delegate { | 41 public net::HttpServer::Delegate { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 115 |
| 115 base::DictionaryValue* SerializeTarget(const DevToolsTarget& target, | 116 base::DictionaryValue* SerializeTarget(const DevToolsTarget& target, |
| 116 const std::string& host); | 117 const std::string& host); |
| 117 | 118 |
| 118 // The thread used by the devtools handler to run server socket. | 119 // The thread used by the devtools handler to run server socket. |
| 119 scoped_ptr<base::Thread> thread_; | 120 scoped_ptr<base::Thread> thread_; |
| 120 | 121 |
| 121 std::string frontend_url_; | 122 std::string frontend_url_; |
| 122 const scoped_ptr<ServerSocketFactory> server_socket_factory_; | 123 const scoped_ptr<ServerSocketFactory> server_socket_factory_; |
| 123 scoped_ptr<net::HttpServer> server_; | 124 scoped_ptr<net::HttpServer> server_; |
| 125 scoped_ptr<net::IPEndPoint> server_ip_address_; |
| 124 typedef std::map<int, DevToolsAgentHostClient*> ConnectionToClientMap; | 126 typedef std::map<int, DevToolsAgentHostClient*> ConnectionToClientMap; |
| 125 ConnectionToClientMap connection_to_client_ui_; | 127 ConnectionToClientMap connection_to_client_ui_; |
| 126 const scoped_ptr<DevToolsHttpHandlerDelegate> delegate_; | 128 const scoped_ptr<DevToolsHttpHandlerDelegate> delegate_; |
| 127 const base::FilePath active_port_output_directory_; | 129 const base::FilePath active_port_output_directory_; |
| 128 typedef std::map<std::string, DevToolsTarget*> TargetMap; | 130 typedef std::map<std::string, DevToolsTarget*> TargetMap; |
| 129 TargetMap target_map_; | 131 TargetMap target_map_; |
| 130 typedef std::map<int, BrowserTarget*> BrowserTargets; | 132 typedef std::map<int, BrowserTarget*> BrowserTargets; |
| 131 BrowserTargets browser_targets_; | 133 BrowserTargets browser_targets_; |
| 132 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); | 134 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); |
| 133 }; | 135 }; |
| 134 | 136 |
| 135 } // namespace content | 137 } // namespace content |
| 136 | 138 |
| 137 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ | 139 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ |
| OLD | NEW |