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

Side by Side Diff: net/base/net_util.cc

Issue 6279005: Adjust comments for new Source/ location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | net/websockets/websocket.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "net/base/net_util.h" 5 #include "net/base/net_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <unicode/regex.h> 9 #include <unicode/regex.h>
10 #include <unicode/ucnv.h> 10 #include <unicode/ucnv.h>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 2049, // nfs 140 2049, // nfs
141 3659, // apple-sasl / PasswordServer 141 3659, // apple-sasl / PasswordServer
142 4045, // lockd 142 4045, // lockd
143 6000, // X11 143 6000, // X11
144 6665, // Alternate IRC [Apple addition] 144 6665, // Alternate IRC [Apple addition]
145 6666, // Alternate IRC [Apple addition] 145 6666, // Alternate IRC [Apple addition]
146 6667, // Standard IRC [Apple addition] 146 6667, // Standard IRC [Apple addition]
147 6668, // Alternate IRC [Apple addition] 147 6668, // Alternate IRC [Apple addition]
148 6669, // Alternate IRC [Apple addition] 148 6669, // Alternate IRC [Apple addition]
149 0xFFFF, // Used to block all invalid port numbers (see 149 0xFFFF, // Used to block all invalid port numbers (see
150 // third_party/WebKit/WebCore/platform/KURLGoogle.cpp, port()) 150 // third_party/WebKit/Source/WebCore/platform/KURLGoogle.cpp, port())
151 }; 151 };
152 152
153 // FTP overrides the following restricted ports. 153 // FTP overrides the following restricted ports.
154 static const int kAllowedFtpPorts[] = { 154 static const int kAllowedFtpPorts[] = {
155 21, // ftp data 155 21, // ftp data
156 22, // ssh 156 22, // ssh
157 }; 157 };
158 158
159 template<typename STR> 159 template<typename STR>
160 STR GetSpecificHeaderT(const STR& headers, const STR& name) { 160 STR GetSpecificHeaderT(const STR& headers, const STR& name) {
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 } 2060 }
2061 2061
2062 int GetPortFromAddrinfo(const struct addrinfo* info) { 2062 int GetPortFromAddrinfo(const struct addrinfo* info) {
2063 uint16* port_field = GetPortFieldFromAddrinfo(info); 2063 uint16* port_field = GetPortFieldFromAddrinfo(info);
2064 if (!port_field) 2064 if (!port_field)
2065 return -1; 2065 return -1;
2066 return ntohs(*port_field); 2066 return ntohs(*port_field);
2067 } 2067 }
2068 2068
2069 } // namespace net 2069 } // namespace net
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | net/websockets/websocket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698