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 #ifndef NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ | 5 #ifndef NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ |
6 #define NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ | 6 #define NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "net/interfaces/proxy_resolver_service.mojom.h" | 12 #include "net/interfaces/proxy_resolver_service.mojom.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 class HostResolver; | |
16 class ProxyResolverErrorObserver; | |
17 class ProxyResolverV8TracingFactory; | 15 class ProxyResolverV8TracingFactory; |
18 | 16 |
19 class MojoProxyResolverFactoryImpl : public interfaces::ProxyResolverFactory { | 17 class MojoProxyResolverFactoryImpl : public interfaces::ProxyResolverFactory { |
20 public: | 18 public: |
21 MojoProxyResolverFactoryImpl(); | 19 MojoProxyResolverFactoryImpl(); |
22 explicit MojoProxyResolverFactoryImpl( | 20 explicit MojoProxyResolverFactoryImpl( |
23 std::unique_ptr<ProxyResolverV8TracingFactory> proxy_resolver_factory); | 21 std::unique_ptr<ProxyResolverV8TracingFactory> proxy_resolver_factory); |
24 | 22 |
25 ~MojoProxyResolverFactoryImpl() override; | 23 ~MojoProxyResolverFactoryImpl() override; |
26 | 24 |
(...skipping 12 matching lines...) Expand all Loading... |
39 proxy_resolver_impl_factory_; | 37 proxy_resolver_impl_factory_; |
40 | 38 |
41 std::map<Job*, std::unique_ptr<Job>> jobs_; | 39 std::map<Job*, std::unique_ptr<Job>> jobs_; |
42 | 40 |
43 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverFactoryImpl); | 41 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverFactoryImpl); |
44 }; | 42 }; |
45 | 43 |
46 } // namespace net | 44 } // namespace net |
47 | 45 |
48 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ | 46 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ |
OLD | NEW |