| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |