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

Unified Diff: net/socket/client_socket_pool_base.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: fixcaller 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_script_decider.h ('k') | net/socket/transport_client_socket_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_pool_base.h
diff --git a/net/socket/client_socket_pool_base.h b/net/socket/client_socket_pool_base.h
index 601ab6db1910a0ed068d798fdd9f7db568c10c8a..2f21981969d667bbed61328729b51b83cb2db7ed 100644
--- a/net/socket/client_socket_pool_base.h
+++ b/net/socket/client_socket_pool_base.h
@@ -136,7 +136,7 @@ class NET_EXPORT_PRIVATE ConnectJob {
// TODO(akalin): Support reprioritization.
const RequestPriority priority_;
// Timer to abort jobs that take too long.
- base::OneShotTimer<ConnectJob> timer_;
+ base::OneShotTimer timer_;
Delegate* delegate_;
scoped_ptr<StreamSocket> socket_;
BoundNetLog net_log_;
@@ -494,7 +494,7 @@ class NET_EXPORT_PRIVATE ClientSocketPoolBaseHelper
RequestQueue pending_requests_;
int active_socket_count_; // number of active sockets used by clients
// A timer for when to start the backup job.
- base::OneShotTimer<Group> backup_job_timer_;
+ base::OneShotTimer backup_job_timer_;
};
typedef std::map<std::string, Group*> GroupMap;
@@ -615,7 +615,7 @@ class NET_EXPORT_PRIVATE ClientSocketPoolBaseHelper
// Timer used to periodically prune idle sockets that timed out or can't be
// reused.
- base::RepeatingTimer<ClientSocketPoolBaseHelper> timer_;
+ base::RepeatingTimer timer_;
// The total number of idle sockets in the system.
int idle_socket_count_;
« no previous file with comments | « net/proxy/proxy_script_decider.h ('k') | net/socket/transport_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698