OLD | NEW |
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/proxy/proxy_resolver_factory_mojo.h" | 5 #include "net/proxy/proxy_resolver_factory_mojo.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ptr_util.h" |
14 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
16 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
17 #include "base/values.h" | 18 #include "base/values.h" |
18 #include "mojo/public/cpp/bindings/binding.h" | 19 #include "mojo/public/cpp/bindings/binding.h" |
19 #include "net/base/load_states.h" | 20 #include "net/base/load_states.h" |
20 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
21 #include "net/dns/mojo_host_resolver_impl.h" | 22 #include "net/dns/mojo_host_resolver_impl.h" |
22 #include "net/interfaces/host_resolver_service.mojom.h" | 23 #include "net/interfaces/host_resolver_service.mojom.h" |
23 #include "net/interfaces/proxy_resolver_service.mojom.h" | 24 #include "net/interfaces/proxy_resolver_service.mojom.h" |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 return ERR_PAC_SCRIPT_FAILED; | 368 return ERR_PAC_SCRIPT_FAILED; |
368 } | 369 } |
369 request->reset(new Job(this, pac_script, resolver, callback, | 370 request->reset(new Job(this, pac_script, resolver, callback, |
370 error_observer_factory_.is_null() | 371 error_observer_factory_.is_null() |
371 ? nullptr | 372 ? nullptr |
372 : error_observer_factory_.Run())); | 373 : error_observer_factory_.Run())); |
373 return ERR_IO_PENDING; | 374 return ERR_IO_PENDING; |
374 } | 375 } |
375 | 376 |
376 } // namespace net | 377 } // namespace net |
OLD | NEW |