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

Side by Side Diff: net/http/http_proxy_client_socket_pool.h

Issue 2932993002: Determine proxy connection timeout based on current network quality (Closed)
Patch Set: mmenke comments Created 3 years, 6 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 | « no previous file | net/http/http_proxy_client_socket_pool.cc » ('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_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
7 7
8 #include <stdint.h>
9
8 #include <memory> 10 #include <memory>
9 #include <string> 11 #include <string>
10 12
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
14 #include "base/time/time.h" 16 #include "base/time/time.h"
15 #include "net/base/host_port_pair.h" 17 #include "net/base/host_port_pair.h"
16 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
17 #include "net/http/http_auth.h" 19 #include "net/http/http_auth.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 const std::string& group_name, 221 const std::string& group_name,
220 const PoolBase::Request& request, 222 const PoolBase::Request& request,
221 ConnectJob::Delegate* delegate) const override; 223 ConnectJob::Delegate* delegate) const override;
222 224
223 base::TimeDelta ConnectionTimeout() const override; 225 base::TimeDelta ConnectionTimeout() const override;
224 226
225 private: 227 private:
226 TransportClientSocketPool* const transport_pool_; 228 TransportClientSocketPool* const transport_pool_;
227 SSLClientSocketPool* const ssl_pool_; 229 SSLClientSocketPool* const ssl_pool_;
228 NetworkQualityProvider* network_quality_provider_; 230 NetworkQualityProvider* network_quality_provider_;
231 const int32_t transport_rtt_multiplier_;
232 const base::TimeDelta min_proxy_connection_timeout_;
233 const base::TimeDelta max_proxy_connection_timeout_;
229 NetLog* net_log_; 234 NetLog* net_log_;
230 235
231 DISALLOW_COPY_AND_ASSIGN(HttpProxyConnectJobFactory); 236 DISALLOW_COPY_AND_ASSIGN(HttpProxyConnectJobFactory);
232 }; 237 };
233 238
234 TransportClientSocketPool* const transport_pool_; 239 TransportClientSocketPool* const transport_pool_;
235 SSLClientSocketPool* const ssl_pool_; 240 SSLClientSocketPool* const ssl_pool_;
236 PoolBase base_; 241 PoolBase base_;
237 242
238 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); 243 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool);
239 }; 244 };
240 245
241 } // namespace net 246 } // namespace net
242 247
243 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 248 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698