| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 frontend_url, | 496 frontend_url, |
| 497 delegate, | 497 delegate, |
| 498 active_port_output_directory); | 498 active_port_output_directory); |
| 499 return http_handler; | 499 return http_handler; |
| 500 } | 500 } |
| 501 | 501 |
| 502 // DevToolsHttpHandler::ServerSocketFactory ---------------------------------- | 502 // DevToolsHttpHandler::ServerSocketFactory ---------------------------------- |
| 503 | 503 |
| 504 DevToolsHttpHandler::ServerSocketFactory::ServerSocketFactory( | 504 DevToolsHttpHandler::ServerSocketFactory::ServerSocketFactory( |
| 505 const std::string& address, | 505 const std::string& address, |
| 506 int port, | 506 uint16 port, |
| 507 int backlog) | 507 int backlog) |
| 508 : address_(address), | 508 : address_(address), |
| 509 port_(port), | 509 port_(port), |
| 510 backlog_(backlog) { | 510 backlog_(backlog) { |
| 511 } | 511 } |
| 512 | 512 |
| 513 DevToolsHttpHandler::ServerSocketFactory::~ServerSocketFactory() { | 513 DevToolsHttpHandler::ServerSocketFactory::~ServerSocketFactory() { |
| 514 } | 514 } |
| 515 | 515 |
| 516 scoped_ptr<net::ServerSocket> | 516 scoped_ptr<net::ServerSocket> |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 id.c_str(), | 1132 id.c_str(), |
| 1133 host); | 1133 host); |
| 1134 dictionary->SetString( | 1134 dictionary->SetString( |
| 1135 kTargetDevtoolsFrontendUrlField, devtools_frontend_url); | 1135 kTargetDevtoolsFrontendUrlField, devtools_frontend_url); |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 return dictionary; | 1138 return dictionary; |
| 1139 } | 1139 } |
| 1140 | 1140 |
| 1141 } // namespace content | 1141 } // namespace content |
| OLD | NEW |