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 #include "content/browser/devtools/devtools_http_handler_impl.h" | 5 #include "content/browser/devtools/devtools_http_handler_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 delegate, | 259 delegate, |
260 active_port_output_directory); | 260 active_port_output_directory); |
261 http_handler->Start(); | 261 http_handler->Start(); |
262 return http_handler; | 262 return http_handler; |
263 } | 263 } |
264 | 264 |
265 // DevToolsHttpHandler::ServerSocketFactory ---------------------------------- | 265 // DevToolsHttpHandler::ServerSocketFactory ---------------------------------- |
266 | 266 |
267 DevToolsHttpHandler::ServerSocketFactory::ServerSocketFactory( | 267 DevToolsHttpHandler::ServerSocketFactory::ServerSocketFactory( |
268 const std::string& address, | 268 const std::string& address, |
269 int port, | 269 uint16 port, |
270 int backlog) | 270 int backlog) |
271 : address_(address), | 271 : address_(address), |
272 port_(port), | 272 port_(port), |
273 backlog_(backlog) { | 273 backlog_(backlog) { |
274 } | 274 } |
275 | 275 |
276 DevToolsHttpHandler::ServerSocketFactory::~ServerSocketFactory() { | 276 DevToolsHttpHandler::ServerSocketFactory::~ServerSocketFactory() { |
277 } | 277 } |
278 | 278 |
279 scoped_ptr<net::ServerSocket> | 279 scoped_ptr<net::ServerSocket> |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 id.c_str(), | 983 id.c_str(), |
984 host); | 984 host); |
985 dictionary->SetString( | 985 dictionary->SetString( |
986 kTargetDevtoolsFrontendUrlField, devtools_frontend_url); | 986 kTargetDevtoolsFrontendUrlField, devtools_frontend_url); |
987 } | 987 } |
988 | 988 |
989 return dictionary; | 989 return dictionary; |
990 } | 990 } |
991 | 991 |
992 } // namespace content | 992 } // namespace content |
OLD | NEW |