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

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

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 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 | « net/base/host_resolver_proc.h ('k') | net/base/ip_endpoint.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) 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 "net/base/host_resolver_proc.h" 5 #include "net/base/host_resolver_proc.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/sys_byteorder.h" 10 #include "base/sys_byteorder.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 if (err != WSAHOST_NOT_FOUND && err != WSANO_DATA) 229 if (err != WSAHOST_NOT_FOUND && err != WSANO_DATA)
230 return ERR_NAME_RESOLUTION_FAILED; 230 return ERR_NAME_RESOLUTION_FAILED;
231 #elif defined(OS_POSIX) && !defined(OS_FREEBSD) 231 #elif defined(OS_POSIX) && !defined(OS_FREEBSD)
232 if (err != EAI_NONAME && err != EAI_NODATA) 232 if (err != EAI_NONAME && err != EAI_NODATA)
233 return ERR_NAME_RESOLUTION_FAILED; 233 return ERR_NAME_RESOLUTION_FAILED;
234 #endif 234 #endif
235 235
236 return ERR_NAME_NOT_RESOLVED; 236 return ERR_NAME_NOT_RESOLVED;
237 } 237 }
238 238
239 *addrlist = AddressList::CreateByAdoptingFromSystem(ai); 239 *addrlist = AddressList::CreateFromAddrinfo(ai);
240 freeaddrinfo(ai);
240 return OK; 241 return OK;
241 } 242 }
242 243
243 } // namespace net 244 } // namespace net
OLDNEW
« no previous file with comments | « net/base/host_resolver_proc.h ('k') | net/base/ip_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698