Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: content/browser/devtools/devtools_http_handler_impl.cc

Issue 717373002: Use uint16 for port numbers, content/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self-review Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/devtools/devtools_http_handler_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/devtools_http_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698