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

Side by Side Diff: net/dns/host_resolver_mojo.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
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/host_resolver_mojo.h" 5 #include "net/dns/host_resolver_mojo.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/memory/ptr_util.h"
10 #include "mojo/public/cpp/bindings/binding.h" 11 #include "mojo/public/cpp/bindings/binding.h"
11 #include "net/base/address_list.h" 12 #include "net/base/address_list.h"
12 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
13 14
14 namespace net { 15 namespace net {
15 namespace { 16 namespace {
16 17
17 // Default TTL for successful host resolutions. 18 // Default TTL for successful host resolutions.
18 const int kCacheEntryTTLSeconds = 5; 19 const int kCacheEntryTTLSeconds = 5;
19 20
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 if (binding_.is_bound()) 154 if (binding_.is_bound())
154 binding_.Close(); 155 binding_.Close();
155 base::ResetAndReturn(&callback_).Run(error); 156 base::ResetAndReturn(&callback_).Run(error);
156 } 157 }
157 158
158 void HostResolverMojo::Job::OnConnectionError() { 159 void HostResolverMojo::Job::OnConnectionError() {
159 ReportResult(ERR_FAILED, AddressList()); 160 ReportResult(ERR_FAILED, AddressList());
160 } 161 }
161 162
162 } // namespace net 163 } // namespace net
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_experiment_unittest.cc ('k') | net/dns/mojo_host_resolver_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698