diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-14 23:32:29 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-14 23:32:29 +0000 |
commit | 708d0cce7d55778a3527c6c6ea60ebaac1d6ec10 (patch) | |
tree | 27f9736e21c5bb0f44f798ffd0629c157fbed0ed /net/dns/address_sorter.h | |
parent | e833677d6b5a38936bcc2ce455dfe303ce8e0f8b (diff) | |
download | chromium_src-708d0cce7d55778a3527c6c6ea60ebaac1d6ec10.zip chromium_src-708d0cce7d55778a3527c6c6ea60ebaac1d6ec10.tar.gz chromium_src-708d0cce7d55778a3527c6c6ea60ebaac1d6ec10.tar.bz2 |
Revert 151586 - [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses according to RFC3484.
BUG=113993
TEST=./net_unittests --gtest_filter=AddressSorter*:HostResolverImplDnsTest.DnsTaskUnspec
Review URL: https://chromiumcodereview.appspot.com/10442098
TBR=szym@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10855163
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/dns/address_sorter.h')
-rw-r--r-- | net/dns/address_sorter.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/net/dns/address_sorter.h b/net/dns/address_sorter.h deleted file mode 100644 index 6ac9430..0000000 --- a/net/dns/address_sorter.h +++ /dev/null @@ -1,46 +0,0 @@ -// 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. - -#ifndef NET_DNS_ADDRESS_SORTER_H_ -#define NET_DNS_ADDRESS_SORTER_H_ - -#include "base/basictypes.h" -#include "base/callback.h" -#include "base/memory/scoped_ptr.h" -#include "net/base/net_export.h" - -namespace net { - -class AddressList; - -// Sorts AddressList according to RFC3484, by likelihood of successful -// connection. Depending on the platform, the sort could be performed -// asynchronously by the OS, or synchronously by local implementation. -// AddressSorter does not necessarily preserve port numbers on the sorted list. -class NET_EXPORT AddressSorter { - public: - typedef base::Callback<void(bool success, - const AddressList& list)> CallbackType; - - virtual ~AddressSorter() {} - - // Sorts |list|, which must include at least one IPv6 address. - // Calls |callback| upon completion. Could complete synchronously. Could - // complete after this AddressSorter is destroyed. - virtual void Sort(const AddressList& list, - const CallbackType& callback) const = 0; - - // Creates platform-dependent AddressSorter. - static scoped_ptr<AddressSorter> CreateAddressSorter(); - - protected: - AddressSorter() {} - - private: - DISALLOW_COPY_AND_ASSIGN(AddressSorter); -}; - -} // namespace net - -#endif // NET_DNS_ADDRESS_SORTER_H_ |