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

Side by Side Diff: net/proxy/mojo_proxy_resolver_impl.h

Issue 2391453002: Remove stl_util's deletion functions from net/proxy/. (Closed)
Patch Set: fixes Created 4 years, 2 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/proxy/mojo_proxy_resolver_factory_impl.cc ('k') | net/proxy/mojo_proxy_resolver_impl.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 #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>
11 #include <set>
12 11
13 #include "base/macros.h" 12 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
15 #include "net/interfaces/proxy_resolver_service.mojom.h" 14 #include "net/interfaces/proxy_resolver_service.mojom.h"
16 #include "net/proxy/proxy_resolver.h" 15 #include "net/proxy/proxy_resolver.h"
17 16
18 namespace net { 17 namespace net {
19 class ProxyResolverV8Tracing; 18 class ProxyResolverV8Tracing;
20 19
21 class MojoProxyResolverImpl : public interfaces::ProxyResolver { 20 class MojoProxyResolverImpl : public interfaces::ProxyResolver {
22 public: 21 public:
23 explicit MojoProxyResolverImpl( 22 explicit MojoProxyResolverImpl(
24 std::unique_ptr<ProxyResolverV8Tracing> resolver); 23 std::unique_ptr<ProxyResolverV8Tracing> resolver);
25 24
26 ~MojoProxyResolverImpl() override; 25 ~MojoProxyResolverImpl() override;
27 26
28 private: 27 private:
29 class Job; 28 class Job;
30 29
31 // interfaces::ProxyResolver overrides. 30 // interfaces::ProxyResolver overrides.
32 void GetProxyForUrl( 31 void GetProxyForUrl(
33 const GURL& url, 32 const GURL& url,
34 interfaces::ProxyResolverRequestClientPtr client) override; 33 interfaces::ProxyResolverRequestClientPtr client) override;
35 34
36 void DeleteJob(Job* job); 35 void DeleteJob(Job* job);
37 36
38 std::unique_ptr<ProxyResolverV8Tracing> resolver_; 37 std::unique_ptr<ProxyResolverV8Tracing> resolver_;
39 std::set<Job*> resolve_jobs_; 38 std::map<Job*, std::unique_ptr<Job>> resolve_jobs_;
40 39
41 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverImpl); 40 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverImpl);
42 }; 41 };
43 42
44 } // namespace net 43 } // namespace net
45 44
46 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_ 45 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_
OLDNEW
« no previous file with comments | « net/proxy/mojo_proxy_resolver_factory_impl.cc ('k') | net/proxy/mojo_proxy_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698