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

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

Issue 655063002: Use uint16 for port numbers more pervasively. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert bad change 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
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 <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
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
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
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | content/browser/devtools/devtools_http_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698