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

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

Issue 2083463002: Replace //net TypeConverters with StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-converter-cleanup--gurl
Patch Set: rebase Created 4 years, 2 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/dns/OWNERS » ('j') | net/dns/mojo_host_resolver_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698