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

Side by Side Diff: net/tools/quic/quic_time_wait_list_manager.cc

Issue 2460163002: Refactor QuicServerSessionBase::Visitor (Closed)
Patch Set: Updated patchset dependency Created 4 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 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/tools/quic/quic_time_wait_list_manager.h" 5 #include "net/tools/quic/quic_time_wait_list_manager.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 private: 69 private:
70 const IPEndPoint server_address_; 70 const IPEndPoint server_address_;
71 const IPEndPoint client_address_; 71 const IPEndPoint client_address_;
72 std::unique_ptr<QuicEncryptedPacket> packet_; 72 std::unique_ptr<QuicEncryptedPacket> packet_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(QueuedPacket); 74 DISALLOW_COPY_AND_ASSIGN(QueuedPacket);
75 }; 75 };
76 76
77 QuicTimeWaitListManager::QuicTimeWaitListManager( 77 QuicTimeWaitListManager::QuicTimeWaitListManager(
78 QuicPacketWriter* writer, 78 QuicPacketWriter* writer,
79 QuicServerSessionBase::Visitor* visitor, 79 Visitor* visitor,
80 QuicConnectionHelperInterface* helper, 80 QuicConnectionHelperInterface* helper,
81 QuicAlarmFactory* alarm_factory) 81 QuicAlarmFactory* alarm_factory)
82 : time_wait_period_( 82 : time_wait_period_(
83 QuicTime::Delta::FromSeconds(FLAGS_quic_time_wait_list_seconds)), 83 QuicTime::Delta::FromSeconds(FLAGS_quic_time_wait_list_seconds)),
84 connection_id_clean_up_alarm_( 84 connection_id_clean_up_alarm_(
85 alarm_factory->CreateAlarm(new ConnectionIdCleanUpAlarm(this))), 85 alarm_factory->CreateAlarm(new ConnectionIdCleanUpAlarm(this))),
86 clock_(helper->GetClock()), 86 clock_(helper->GetClock()),
87 writer_(writer), 87 writer_(writer),
88 visitor_(visitor) { 88 visitor_(visitor) {
89 SetConnectionIdCleanUpAlarm(); 89 SetConnectionIdCleanUpAlarm();
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 version(version_), 319 version(version_),
320 time_added(time_added_), 320 time_added(time_added_),
321 connection_rejected_statelessly(connection_rejected_statelessly) {} 321 connection_rejected_statelessly(connection_rejected_statelessly) {}
322 322
323 QuicTimeWaitListManager::ConnectionIdData::ConnectionIdData( 323 QuicTimeWaitListManager::ConnectionIdData::ConnectionIdData(
324 ConnectionIdData&& other) = default; 324 ConnectionIdData&& other) = default;
325 325
326 QuicTimeWaitListManager::ConnectionIdData::~ConnectionIdData() {} 326 QuicTimeWaitListManager::ConnectionIdData::~ConnectionIdData() {}
327 327
328 } // namespace net 328 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_time_wait_list_manager.h ('k') | net/tools/quic/quic_time_wait_list_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698