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

Side by Side Diff: net/dns/address_sorter.h

Issue 10442098: [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses according to RFC3484. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Working AddressSorterWin + measurements. Created 8 years, 6 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698