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

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

Issue 2416483002: Use std::string instead of mojo::String in //net. (Closed)
Patch Set: 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.h ('k') | net/proxy/mojo_proxy_resolver_factory_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_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"
(...skipping 11 matching lines...) Expand all
22 explicit MojoProxyResolverFactoryImpl( 22 explicit MojoProxyResolverFactoryImpl(
23 std::unique_ptr<ProxyResolverV8TracingFactory> proxy_resolver_factory); 23 std::unique_ptr<ProxyResolverV8TracingFactory> proxy_resolver_factory);
24 24
25 ~MojoProxyResolverFactoryImpl() override; 25 ~MojoProxyResolverFactoryImpl() override;
26 26
27 private: 27 private:
28 class Job; 28 class Job;
29 29
30 // interfaces::ProxyResolverFactory override. 30 // interfaces::ProxyResolverFactory override.
31 void CreateResolver( 31 void CreateResolver(
32 const mojo::String& pac_script, 32 const std::string& pac_script,
33 interfaces::ProxyResolverRequest request, 33 interfaces::ProxyResolverRequest request,
34 interfaces::ProxyResolverFactoryRequestClientPtr client) override; 34 interfaces::ProxyResolverFactoryRequestClientPtr client) override;
35 35
36 void RemoveJob(Job* job); 36 void RemoveJob(Job* job);
37 37
38 const std::unique_ptr<ProxyResolverV8TracingFactory> 38 const std::unique_ptr<ProxyResolverV8TracingFactory>
39 proxy_resolver_impl_factory_; 39 proxy_resolver_impl_factory_;
40 40
41 std::map<Job*, std::unique_ptr<Job>> jobs_; 41 std::map<Job*, std::unique_ptr<Job>> jobs_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverFactoryImpl); 43 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverFactoryImpl);
44 }; 44 };
45 45
46 } // namespace net 46 } // namespace net
47 47
48 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ 48 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « net/proxy/mojo_proxy_resolver_factory.h ('k') | net/proxy/mojo_proxy_resolver_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698