| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 template <typename InputIt> | 76 template <typename InputIt> |
| 77 void insert(iterator pos, InputIt first, InputIt last) { | 77 void insert(iterator pos, InputIt first, InputIt last) { |
| 78 endpoints_.insert(pos, first, last); | 78 endpoints_.insert(pos, first, last); |
| 79 } | 79 } |
| 80 iterator begin() { return endpoints_.begin(); } | 80 iterator begin() { return endpoints_.begin(); } |
| 81 const_iterator begin() const { return endpoints_.begin(); } | 81 const_iterator begin() const { return endpoints_.begin(); } |
| 82 iterator end() { return endpoints_.end(); } | 82 iterator end() { return endpoints_.end(); } |
| 83 const_iterator end() const { return endpoints_.end(); } | 83 const_iterator end() const { return endpoints_.end(); } |
| 84 | 84 |
| 85 const std::vector<net::IPEndPoint>& endpoints() const { return endpoints_; } |
| 86 std::vector<net::IPEndPoint>& endpoints() { return endpoints_; } |
| 87 |
| 85 private: | 88 private: |
| 86 std::vector<IPEndPoint> endpoints_; | 89 std::vector<IPEndPoint> endpoints_; |
| 87 // TODO(szym): Remove. http://crbug.com/126134 | 90 // TODO(szym): Remove. http://crbug.com/126134 |
| 88 std::string canonical_name_; | 91 std::string canonical_name_; |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace net | 94 } // namespace net |
| 92 | 95 |
| 93 #endif // NET_BASE_ADDRESS_LIST_H_ | 96 #endif // NET_BASE_ADDRESS_LIST_H_ |
| OLD | NEW |