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

Side by Side Diff: net/base/address_list.h

Issue 7466031: AsyncHostResolver: integrated HostCache, temporarily, until we have RR cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comment. Created 9 years, 5 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 | « no previous file | net/base/address_list.cc » ('j') | net/base/async_host_resolver.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_BASE_ADDRESS_LIST_H_ 5 #ifndef NET_BASE_ADDRESS_LIST_H_
6 #define NET_BASE_ADDRESS_LIST_H_ 6 #define NET_BASE_ADDRESS_LIST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const struct addrinfo* head() const; 104 const struct addrinfo* head() const;
105 105
106 private: 106 private:
107 struct Data; 107 struct Data;
108 108
109 explicit AddressList(Data* data); 109 explicit AddressList(Data* data);
110 110
111 scoped_refptr<Data> data_; 111 scoped_refptr<Data> data_;
112 }; 112 };
113 113
114 // Helper to create an AddressList that has a particular port. It has an
115 // optimization to avoid allocating a new address linked list when the
116 // port is already what we want.
117 AddressList CreateAddressListUsingPort(const AddressList& src, int port);
118
114 } // namespace net 119 } // namespace net
115 120
116 #endif // NET_BASE_ADDRESS_LIST_H_ 121 #endif // NET_BASE_ADDRESS_LIST_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/address_list.cc » ('j') | net/base/async_host_resolver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698