| 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 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Creates a new utility process and connects to its Mojo proxy resolver | 53 // Creates a new utility process and connects to its Mojo proxy resolver |
| 54 // factory. | 54 // factory. |
| 55 void CreateProcessAndConnect(); | 55 void CreateProcessAndConnect(); |
| 56 | 56 |
| 57 net::interfaces::ProxyResolverFactoryPtr resolver_factory_; | 57 net::interfaces::ProxyResolverFactoryPtr resolver_factory_; |
| 58 | 58 |
| 59 base::WeakPtr<content::UtilityProcessHost> weak_utility_process_host_; | 59 base::WeakPtr<content::UtilityProcessHost> weak_utility_process_host_; |
| 60 size_t num_proxy_resolvers_ = 0; | 60 size_t num_proxy_resolvers_ = 0; |
| 61 | 61 |
| 62 base::OneShotTimer<UtilityProcessMojoProxyResolverFactory> idle_timer_; | 62 base::OneShotTimer idle_timer_; |
| 63 | 63 |
| 64 base::ThreadChecker thread_checker_; | 64 base::ThreadChecker thread_checker_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(UtilityProcessMojoProxyResolverFactory); | 66 DISALLOW_COPY_AND_ASSIGN(UtilityProcessMojoProxyResolverFactory); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ | 69 #endif // CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ |
| OLD | NEW |