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

Side by Side Diff: chrome/browser/net/utility_process_mojo_proxy_resolver_factory.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: . Created 5 years, 3 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
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 "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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698