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

Unified Diff: net/socket/client_socket_pool_options.h

Issue 8526006: Close idle sockets next time we are about to send data. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: code conventions Created 9 years, 1 month 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
Index: net/socket/client_socket_pool_options.h
diff --git a/net/socket/client_socket_pool_options.h b/net/socket/client_socket_pool_options.h
new file mode 100644
index 0000000000000000000000000000000000000000..ffbf3d8c4b23f4e340a66dd3ffab6f0d80268983
--- /dev/null
+++ b/net/socket/client_socket_pool_options.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SOCKET_CLIENT_SOCKET_POOL_OPTIONS_H_
+#define NET_SOCKET_CLIENT_SOCKET_POOL_OPTIONS_H_
+#pragma once
+
+namespace net {
+
+struct NET_EXPORT_PRIVATE ClientSocketPoolOptions {
+
+ ClientSocketPoolOptions(bool timer_enabled = true)
willchan no longer on Chromium 2011/11/15 20:35:29 no default args
+ : use_cleanup_timer(timer_enabled) {}
willchan no longer on Chromium 2011/11/15 20:35:29 indent 4 spaces
+ virtual ~ClientSocketPoolOptions() {}
willchan no longer on Chromium 2011/11/15 20:35:29 No need for virtual
+
+ bool use_cleanup_timer;
+};
+
+} // namespace net
+
+#endif // NET_SOCKET_CLIENT_SOCKET_POOL_OPTIONS_H_
+

Powered by Google App Engine
This is Rietveld 408576698