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

Side by Side Diff: chrome/browser/net/utility_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 | « no previous file | chrome/browser/net/utility_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 CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
6 #define CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 6 #define CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 // utility process. All Mojo proxy resolver services will be run in the same 25 // utility process. All Mojo proxy resolver services will be run in the same
26 // utility process. Utility process crashes are detected and the utility 26 // utility process. Utility process crashes are detected and the utility
27 // process is automatically restarted. 27 // process is automatically restarted.
28 class UtilityProcessMojoProxyResolverFactory 28 class UtilityProcessMojoProxyResolverFactory
29 : public net::MojoProxyResolverFactory { 29 : public net::MojoProxyResolverFactory {
30 public: 30 public:
31 static UtilityProcessMojoProxyResolverFactory* GetInstance(); 31 static UtilityProcessMojoProxyResolverFactory* GetInstance();
32 32
33 // Overridden from net::MojoProxyResolverFactory: 33 // Overridden from net::MojoProxyResolverFactory:
34 std::unique_ptr<base::ScopedClosureRunner> CreateResolver( 34 std::unique_ptr<base::ScopedClosureRunner> CreateResolver(
35 const mojo::String& pac_script, 35 const std::string& pac_script,
36 mojo::InterfaceRequest<net::interfaces::ProxyResolver> req, 36 mojo::InterfaceRequest<net::interfaces::ProxyResolver> req,
37 net::interfaces::ProxyResolverFactoryRequestClientPtr client) override; 37 net::interfaces::ProxyResolverFactoryRequestClientPtr client) override;
38 38
39 private: 39 private:
40 friend struct base::DefaultSingletonTraits< 40 friend struct base::DefaultSingletonTraits<
41 UtilityProcessMojoProxyResolverFactory>; 41 UtilityProcessMojoProxyResolverFactory>;
42 UtilityProcessMojoProxyResolverFactory(); 42 UtilityProcessMojoProxyResolverFactory();
43 ~UtilityProcessMojoProxyResolverFactory() override; 43 ~UtilityProcessMojoProxyResolverFactory() override;
44 44
45 // Error handler callback for |resolver_factory_|. 45 // Error handler callback for |resolver_factory_|.
(...skipping 16 matching lines...) Expand all
62 size_t num_proxy_resolvers_ = 0; 62 size_t num_proxy_resolvers_ = 0;
63 63
64 base::OneShotTimer idle_timer_; 64 base::OneShotTimer idle_timer_;
65 65
66 base::ThreadChecker thread_checker_; 66 base::ThreadChecker thread_checker_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(UtilityProcessMojoProxyResolverFactory); 68 DISALLOW_COPY_AND_ASSIGN(UtilityProcessMojoProxyResolverFactory);
69 }; 69 };
70 70
71 #endif // CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 71 #endif // CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/utility_process_mojo_proxy_resolver_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698