| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // Returns the front end url without the host at the beginning. | 106 // Returns the front end url without the host at the beginning. |
| 107 std::string GetFrontendURLInternal(const std::string target_id, | 107 std::string GetFrontendURLInternal(const std::string target_id, |
| 108 const std::string& host); | 108 const std::string& host); |
| 109 | 109 |
| 110 base::DictionaryValue* SerializeTarget(const DevToolsTarget& target, | 110 base::DictionaryValue* SerializeTarget(const DevToolsTarget& target, |
| 111 const std::string& host); | 111 const std::string& host); |
| 112 | 112 |
| 113 // The thread used by the devtools handler to run server socket. | 113 // The thread used by the devtools handler to run server socket. |
| 114 scoped_ptr<base::Thread> thread_; | 114 scoped_ptr<base::Thread> thread_; |
| 115 | 115 |
| 116 std::string overridden_frontend_url_; | 116 std::string frontend_url_; |
| 117 scoped_ptr<const net::StreamListenSocketFactory> socket_factory_; | 117 scoped_ptr<const net::StreamListenSocketFactory> socket_factory_; |
| 118 scoped_refptr<net::HttpServer> server_; | 118 scoped_refptr<net::HttpServer> server_; |
| 119 typedef std::map<int, DevToolsClientHost*> ConnectionToClientHostMap; | 119 typedef std::map<int, DevToolsClientHost*> ConnectionToClientHostMap; |
| 120 ConnectionToClientHostMap connection_to_client_host_ui_; | 120 ConnectionToClientHostMap connection_to_client_host_ui_; |
| 121 scoped_ptr<DevToolsHttpHandlerDelegate> delegate_; | 121 scoped_ptr<DevToolsHttpHandlerDelegate> delegate_; |
| 122 typedef std::map<std::string, DevToolsTarget*> TargetMap; | 122 typedef std::map<std::string, DevToolsTarget*> TargetMap; |
| 123 TargetMap target_map_; | 123 TargetMap target_map_; |
| 124 scoped_refptr<DevToolsBrowserTarget> browser_target_; | 124 scoped_refptr<DevToolsBrowserTarget> browser_target_; |
| 125 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); | 125 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace content | 128 } // namespace content |
| 129 | 129 |
| 130 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ | 130 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ |
| OLD | NEW |