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

Side by Side Diff: net/proxy/in_process_mojo_proxy_resolver_factory.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/interfaces/BUILD.gn ('k') | net/proxy/in_process_mojo_proxy_resolver_factory.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_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 5 #ifndef NET_PROXY_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
6 #define NET_PROXY_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 6 #define NET_PROXY_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/proxy/mojo_proxy_resolver_factory.h" 9 #include "net/proxy/mojo_proxy_resolver_factory.h"
10 10
11 namespace base { 11 namespace base {
12 template <typename T> 12 template <typename T>
13 struct DefaultSingletonTraits; 13 struct DefaultSingletonTraits;
14 } 14 }
15 15
16 namespace net { 16 namespace net {
17 17
18 // Factory to connect to an in-process Mojo proxy resolver service. 18 // Factory to connect to an in-process Mojo proxy resolver service.
19 // NOTE: This is intended to be temporary for debugging purposes and will be 19 // NOTE: This is intended to be temporary for debugging purposes and will be
20 // removed when we're confident with the out-of-process implementation. 20 // removed when we're confident with the out-of-process implementation.
21 class InProcessMojoProxyResolverFactory : public MojoProxyResolverFactory { 21 class InProcessMojoProxyResolverFactory : public MojoProxyResolverFactory {
22 public: 22 public:
23 static InProcessMojoProxyResolverFactory* GetInstance(); 23 static InProcessMojoProxyResolverFactory* GetInstance();
24 24
25 // Overridden from MojoProxyResolverFactory: 25 // Overridden from MojoProxyResolverFactory:
26 std::unique_ptr<base::ScopedClosureRunner> CreateResolver( 26 std::unique_ptr<base::ScopedClosureRunner> CreateResolver(
27 const mojo::String& pac_script, 27 const std::string& pac_script,
28 mojo::InterfaceRequest<interfaces::ProxyResolver> req, 28 mojo::InterfaceRequest<interfaces::ProxyResolver> req,
29 interfaces::ProxyResolverFactoryRequestClientPtr client) override; 29 interfaces::ProxyResolverFactoryRequestClientPtr client) override;
30 30
31 private: 31 private:
32 InProcessMojoProxyResolverFactory(); 32 InProcessMojoProxyResolverFactory();
33 ~InProcessMojoProxyResolverFactory() override; 33 ~InProcessMojoProxyResolverFactory() override;
34 friend struct base::DefaultSingletonTraits<InProcessMojoProxyResolverFactory>; 34 friend struct base::DefaultSingletonTraits<InProcessMojoProxyResolverFactory>;
35 35
36 interfaces::ProxyResolverFactoryPtr factory_; 36 interfaces::ProxyResolverFactoryPtr factory_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(InProcessMojoProxyResolverFactory); 38 DISALLOW_COPY_AND_ASSIGN(InProcessMojoProxyResolverFactory);
39 }; 39 };
40 40
41 } // namespace net 41 } // namespace net
42 42
43 #endif // NET_PROXY_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 43 #endif // NET_PROXY_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
OLDNEW
« no previous file with comments | « net/interfaces/BUILD.gn ('k') | net/proxy/in_process_mojo_proxy_resolver_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698