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

Side by Side Diff: net/http/http_network_session.cc

Issue 2899313006: Plumb NQP to context and to http_proxy_client_socket_pool (Closed)
Patch Set: ps 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
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 #include "net/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <inttypes.h> 7 #include <inttypes.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 ClientSocketPoolManager* CreateSocketPoolManager( 50 ClientSocketPoolManager* CreateSocketPoolManager(
51 HttpNetworkSession::SocketPoolType pool_type, 51 HttpNetworkSession::SocketPoolType pool_type,
52 const HttpNetworkSession::Context& context, 52 const HttpNetworkSession::Context& context,
53 const std::string& ssl_session_cache_shard) { 53 const std::string& ssl_session_cache_shard) {
54 // TODO(yutak): Differentiate WebSocket pool manager and allow more 54 // TODO(yutak): Differentiate WebSocket pool manager and allow more
55 // simultaneous connections for WebSockets. 55 // simultaneous connections for WebSockets.
56 return new ClientSocketPoolManagerImpl( 56 return new ClientSocketPoolManagerImpl(
57 context.net_log, 57 context.net_log,
58 context.client_socket_factory ? context.client_socket_factory 58 context.client_socket_factory ? context.client_socket_factory
59 : ClientSocketFactory::GetDefaultFactory(), 59 : ClientSocketFactory::GetDefaultFactory(),
60 context.socket_performance_watcher_factory, context.host_resolver, 60 context.socket_performance_watcher_factory,
61 context.network_quality_estimator, context.host_resolver,
61 context.cert_verifier, context.channel_id_service, 62 context.cert_verifier, context.channel_id_service,
62 context.transport_security_state, context.cert_transparency_verifier, 63 context.transport_security_state, context.cert_transparency_verifier,
63 context.ct_policy_enforcer, ssl_session_cache_shard, 64 context.ct_policy_enforcer, ssl_session_cache_shard,
64 context.ssl_config_service, pool_type); 65 context.ssl_config_service, pool_type);
65 } 66 }
66 67
67 } // unnamed namespace 68 } // unnamed namespace
68 69
69 // The maximum receive window sizes for HTTP/2 sessions and streams. 70 // The maximum receive window sizes for HTTP/2 sessions and streams.
70 const int32_t kSpdySessionMaxRecvWindowSize = 15 * 1024 * 1024; // 15 MB 71 const int32_t kSpdySessionMaxRecvWindowSize = 15 * 1024 * 1024; // 15 MB
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 cert_verifier(nullptr), 142 cert_verifier(nullptr),
142 channel_id_service(nullptr), 143 channel_id_service(nullptr),
143 transport_security_state(nullptr), 144 transport_security_state(nullptr),
144 cert_transparency_verifier(nullptr), 145 cert_transparency_verifier(nullptr),
145 ct_policy_enforcer(nullptr), 146 ct_policy_enforcer(nullptr),
146 proxy_service(nullptr), 147 proxy_service(nullptr),
147 ssl_config_service(nullptr), 148 ssl_config_service(nullptr),
148 http_auth_handler_factory(nullptr), 149 http_auth_handler_factory(nullptr),
149 net_log(nullptr), 150 net_log(nullptr),
150 socket_performance_watcher_factory(nullptr), 151 socket_performance_watcher_factory(nullptr),
152 network_quality_estimator(nullptr),
151 quic_clock(nullptr), 153 quic_clock(nullptr),
152 quic_random(nullptr), 154 quic_random(nullptr),
153 quic_crypto_client_stream_factory( 155 quic_crypto_client_stream_factory(
154 QuicCryptoClientStreamFactory::GetDefaultFactory()), 156 QuicCryptoClientStreamFactory::GetDefaultFactory()),
155 proxy_delegate(nullptr) {} 157 proxy_delegate(nullptr) {}
156 158
157 HttpNetworkSession::Context::Context(const Context& other) = default; 159 HttpNetworkSession::Context::Context(const Context& other) = default;
158 160
159 HttpNetworkSession::Context::~Context() {} 161 HttpNetworkSession::Context::~Context() {}
160 162
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 CloseIdleConnections(); 479 CloseIdleConnections();
478 break; 480 break;
479 } 481 }
480 } 482 }
481 483
482 void HttpNetworkSession::OnPurgeMemory() { 484 void HttpNetworkSession::OnPurgeMemory() {
483 CloseIdleConnections(); 485 CloseIdleConnections();
484 } 486 }
485 487
486 } // namespace net 488 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698