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

Side by Side Diff: net/socket/client_socket_pool.h

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « net/socket/client_socket_factory.cc ('k') | net/socket/client_socket_pool_base.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NET_SOCKET_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_CLIENT_SOCKET_POOL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 virtual ClientSocketPoolHistograms* histograms() const = 0; 175 virtual ClientSocketPoolHistograms* histograms() const = 0;
176 176
177 static base::TimeDelta unused_idle_socket_timeout(); 177 static base::TimeDelta unused_idle_socket_timeout();
178 static void set_unused_idle_socket_timeout(base::TimeDelta timeout); 178 static void set_unused_idle_socket_timeout(base::TimeDelta timeout);
179 179
180 static base::TimeDelta used_idle_socket_timeout(); 180 static base::TimeDelta used_idle_socket_timeout();
181 static void set_used_idle_socket_timeout(base::TimeDelta timeout); 181 static void set_used_idle_socket_timeout(base::TimeDelta timeout);
182 182
183 protected: 183 protected:
184 ClientSocketPool(); 184 ClientSocketPool();
185 virtual ~ClientSocketPool(); 185 ~ClientSocketPool() override;
186 186
187 // Return the connection timeout for this pool. 187 // Return the connection timeout for this pool.
188 virtual base::TimeDelta ConnectionTimeout() const = 0; 188 virtual base::TimeDelta ConnectionTimeout() const = 0;
189 189
190 private: 190 private:
191 DISALLOW_COPY_AND_ASSIGN(ClientSocketPool); 191 DISALLOW_COPY_AND_ASSIGN(ClientSocketPool);
192 }; 192 };
193 193
194 template <typename PoolType> 194 template <typename PoolType>
195 void RequestSocketsForPool( 195 void RequestSocketsForPool(
196 PoolType* pool, 196 PoolType* pool,
197 const std::string& group_name, 197 const std::string& group_name,
198 const scoped_refptr<typename PoolType::SocketParams>& params, 198 const scoped_refptr<typename PoolType::SocketParams>& params,
199 int num_sockets, 199 int num_sockets,
200 const BoundNetLog& net_log) { 200 const BoundNetLog& net_log) {
201 pool->RequestSockets(group_name, &params, num_sockets, net_log); 201 pool->RequestSockets(group_name, &params, num_sockets, net_log);
202 } 202 }
203 203
204 } // namespace net 204 } // namespace net
205 205
206 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_H_ 206 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/socket/client_socket_pool_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698