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

Side by Side Diff: net/quic/chromium/quic_chromium_client_session.cc

Issue 2521573006: Server push cancellation: change the ownership of ServerPushDelegate to HttpNetworkSession. (Closed)
Patch Set: rebase Created 4 years 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/quic/chromium/quic_chromium_client_session.h" 5 #include "net/quic/chromium/quic_chromium_client_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 const QuicServerId& server_id, 236 const QuicServerId& server_id,
237 int yield_after_packets, 237 int yield_after_packets,
238 QuicTime::Delta yield_after_duration, 238 QuicTime::Delta yield_after_duration,
239 int cert_verify_flags, 239 int cert_verify_flags,
240 const QuicConfig& config, 240 const QuicConfig& config,
241 QuicCryptoClientConfig* crypto_config, 241 QuicCryptoClientConfig* crypto_config,
242 const char* const connection_description, 242 const char* const connection_description,
243 base::TimeTicks dns_resolution_start_time, 243 base::TimeTicks dns_resolution_start_time,
244 base::TimeTicks dns_resolution_end_time, 244 base::TimeTicks dns_resolution_end_time,
245 QuicClientPushPromiseIndex* push_promise_index, 245 QuicClientPushPromiseIndex* push_promise_index,
246 ServerPushDelegate* push_delegate,
246 base::TaskRunner* task_runner, 247 base::TaskRunner* task_runner,
247 std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher, 248 std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher,
248 NetLog* net_log) 249 NetLog* net_log)
249 : QuicClientSessionBase(connection, push_promise_index, config), 250 : QuicClientSessionBase(connection, push_promise_index, config),
250 server_id_(server_id), 251 server_id_(server_id),
251 require_confirmation_(false), 252 require_confirmation_(false),
252 stream_factory_(stream_factory), 253 stream_factory_(stream_factory),
253 transport_security_state_(transport_security_state), 254 transport_security_state_(transport_security_state),
254 server_info_(std::move(server_info)), 255 server_info_(std::move(server_info)),
255 pkp_bypassed_(false), 256 pkp_bypassed_(false),
256 num_total_streams_(0), 257 num_total_streams_(0),
257 task_runner_(task_runner), 258 task_runner_(task_runner),
258 net_log_(NetLogWithSource::Make(net_log, NetLogSourceType::QUIC_SESSION)), 259 net_log_(NetLogWithSource::Make(net_log, NetLogSourceType::QUIC_SESSION)),
259 logger_(new QuicConnectionLogger(this, 260 logger_(new QuicConnectionLogger(this,
260 connection_description, 261 connection_description,
261 std::move(socket_performance_watcher), 262 std::move(socket_performance_watcher),
262 net_log_)), 263 net_log_)),
263 going_away_(false), 264 going_away_(false),
264 port_migration_detected_(false), 265 port_migration_detected_(false),
265 token_binding_signatures_(kTokenBindingSignatureMapSize), 266 token_binding_signatures_(kTokenBindingSignatureMapSize),
266 push_delegate_(nullptr), 267 push_delegate_(push_delegate),
267 streams_pushed_count_(0), 268 streams_pushed_count_(0),
268 streams_pushed_and_claimed_count_(0), 269 streams_pushed_and_claimed_count_(0),
269 bytes_pushed_count_(0), 270 bytes_pushed_count_(0),
270 bytes_pushed_and_unclaimed_count_(0), 271 bytes_pushed_and_unclaimed_count_(0),
271 migration_pending_(false), 272 migration_pending_(false),
272 weak_factory_(this) { 273 weak_factory_(this) {
273 sockets_.push_back(std::move(socket)); 274 sockets_.push_back(std::move(socket));
274 packet_readers_.push_back(base::MakeUnique<QuicChromiumPacketReader>( 275 packet_readers_.push_back(base::MakeUnique<QuicChromiumPacketReader>(
275 sockets_.back().get(), clock, this, yield_after_packets, 276 sockets_.back().get(), clock, this, yield_after_packets,
276 yield_after_duration, net_log_)); 277 yield_after_duration, net_log_));
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 connect_timing_.ssl_start = connect_timing_.connect_start; 1513 connect_timing_.ssl_start = connect_timing_.connect_start;
1513 connect_timing_.ssl_end = connect_timing_.connect_end; 1514 connect_timing_.ssl_end = connect_timing_.connect_end;
1514 return connect_timing_; 1515 return connect_timing_;
1515 } 1516 }
1516 1517
1517 QuicVersion QuicChromiumClientSession::GetQuicVersion() const { 1518 QuicVersion QuicChromiumClientSession::GetQuicVersion() const {
1518 return connection()->version(); 1519 return connection()->version();
1519 } 1520 }
1520 1521
1521 } // namespace net 1522 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session.h ('k') | net/quic/chromium/quic_chromium_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698