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

Unified Diff: net/base/host_resolver_proc.h

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_EXPORT to *PortOnAddressList. Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: net/base/host_resolver_proc.h
diff --git a/net/base/host_resolver_proc.h b/net/base/host_resolver_proc.h
index 0acb31eeeb2b4139eb6551c85047a8f81a3495b7..c55c96830b77ff595e09d3883e8b33b8c51e36d7 100644
--- a/net/base/host_resolver_proc.h
+++ b/net/base/host_resolver_proc.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -16,6 +16,12 @@ namespace net {
class AddressList;
+// Sets the port on each element in |list| to |port|.
+void NET_EXPORT SetPortOnAddressList(uint16 port, AddressList* list);
eroman 2012/05/04 01:08:41 This doesn't feel like the right place to house th
szym 2012/05/04 02:38:29 Only HostResolver-related code uses this, but this
eroman 2012/05/04 04:20:22 Sounds like a good plan.
+
+// As above, but skips work if first port on |list| matches |port|.
+void NET_EXPORT EnsurePortOnAddressList(uint16 port, AddressList* list);
+
// Interface for a getaddrinfo()-like procedure. This is used by unit-tests
// to control the underlying resolutions in HostResolverImpl. HostResolverProcs
// can be chained together; they fallback to the next procedure in the chain

Powered by Google App Engine
This is Rietveld 408576698