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_IMPL_H_ | 5 #ifndef NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_ |
6 #define NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_ | 6 #define NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <queue> | 10 #include <queue> |
(...skipping 12 matching lines...) Expand all Loading... |
23 explicit MojoProxyResolverImpl( | 23 explicit MojoProxyResolverImpl( |
24 std::unique_ptr<ProxyResolverV8Tracing> resolver); | 24 std::unique_ptr<ProxyResolverV8Tracing> resolver); |
25 | 25 |
26 ~MojoProxyResolverImpl() override; | 26 ~MojoProxyResolverImpl() override; |
27 | 27 |
28 private: | 28 private: |
29 class Job; | 29 class Job; |
30 | 30 |
31 // interfaces::ProxyResolver overrides. | 31 // interfaces::ProxyResolver overrides. |
32 void GetProxyForUrl( | 32 void GetProxyForUrl( |
33 const mojo::String& url, | 33 const GURL& url, |
34 interfaces::ProxyResolverRequestClientPtr client) override; | 34 interfaces::ProxyResolverRequestClientPtr client) override; |
35 | 35 |
36 void DeleteJob(Job* job); | 36 void DeleteJob(Job* job); |
37 | 37 |
38 std::unique_ptr<ProxyResolverV8Tracing> resolver_; | 38 std::unique_ptr<ProxyResolverV8Tracing> resolver_; |
39 std::set<Job*> resolve_jobs_; | 39 std::set<Job*> resolve_jobs_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverImpl); | 41 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverImpl); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace net | 44 } // namespace net |
45 | 45 |
46 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_ | 46 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_ |
OLD | NEW |