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

Side by Side Diff: net/dns/mojo_host_struct_traits.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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
« no previous file with comments | « net/dns/mojo_host_resolver_impl_unittest.cc ('k') | net/http/http_cache_lookup_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "net/dns/mojo_host_struct_traits.h" 5 #include "net/dns/mojo_host_struct_traits.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h"
9 #include "net/base/address_list.h" 10 #include "net/base/address_list.h"
10 11
11 namespace mojo { 12 namespace mojo {
12 13
13 // static 14 // static
14 bool EnumTraits<net::interfaces::AddressFamily, net::AddressFamily>::FromMojom( 15 bool EnumTraits<net::interfaces::AddressFamily, net::AddressFamily>::FromMojom(
15 net::interfaces::AddressFamily address_family, 16 net::interfaces::AddressFamily address_family,
16 net::AddressFamily* out) { 17 net::AddressFamily* out) {
17 using net::interfaces::AddressFamily; 18 using net::interfaces::AddressFamily;
18 switch (address_family) { 19 switch (address_family) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 81 }
81 82
82 // static 83 // static
83 bool StructTraits<net::interfaces::AddressListDataView, net::AddressList>::Read( 84 bool StructTraits<net::interfaces::AddressListDataView, net::AddressList>::Read(
84 net::interfaces::AddressListDataView data, 85 net::interfaces::AddressListDataView data,
85 net::AddressList* out) { 86 net::AddressList* out) {
86 return data.ReadAddresses(&out->endpoints()); 87 return data.ReadAddresses(&out->endpoints());
87 } 88 }
88 89
89 } // namespace mojo 90 } // namespace mojo
OLDNEW
« no previous file with comments | « net/dns/mojo_host_resolver_impl_unittest.cc ('k') | net/http/http_cache_lookup_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698