OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_DNS_ADDRESS_SORTER_H_ |
| 6 #define NET_DNS_ADDRESS_SORTER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 class AddressList; |
| 15 |
| 16 class AddressSorter { |
| 17 public: |
| 18 virtual ~AddressSorter() {} |
| 19 |
| 20 // Sorts |list| according to revised RFC3484. |
| 21 virtual bool Sort(AddressList* list) const = 0; |
| 22 |
| 23 // Creates platform-dependent AddressSorter. |
| 24 static scoped_ptr<AddressSorter> CreateAddressSorter(); |
| 25 }; |
| 26 |
| 27 } // namespace net |
| 28 |
| 29 #endif // NET_DNS_ADDRESS_SORTER_H_ |
OLD | NEW |