OLD | NEW |
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/core/quic_packet_generator.h" | 5 #include "net/quic/core/quic_packet_generator.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/quic/core/quic_bug_tracker.h" | 8 #include "net/quic/core/quic_bug_tracker.h" |
9 #include "net/quic/core/quic_flags.h" | 9 #include "net/quic/core/quic_flags.h" |
10 #include "net/quic/core/quic_utils.h" | 10 #include "net/quic/core/quic_utils.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 257 } |
258 queued_control_frames_.pop_back(); | 258 queued_control_frames_.pop_back(); |
259 return true; | 259 return true; |
260 } | 260 } |
261 | 261 |
262 void QuicPacketGenerator::StopSendingVersion() { | 262 void QuicPacketGenerator::StopSendingVersion() { |
263 packet_creator_.StopSendingVersion(); | 263 packet_creator_.StopSendingVersion(); |
264 } | 264 } |
265 | 265 |
266 void QuicPacketGenerator::SetDiversificationNonce( | 266 void QuicPacketGenerator::SetDiversificationNonce( |
267 const DiversificationNonce nonce) { | 267 const DiversificationNonce& nonce) { |
268 packet_creator_.SetDiversificationNonce(nonce); | 268 packet_creator_.SetDiversificationNonce(nonce); |
269 } | 269 } |
270 | 270 |
271 QuicPacketNumber QuicPacketGenerator::packet_number() const { | 271 QuicPacketNumber QuicPacketGenerator::packet_number() const { |
272 return packet_creator_.packet_number(); | 272 return packet_creator_.packet_number(); |
273 } | 273 } |
274 | 274 |
275 QuicByteCount QuicPacketGenerator::GetCurrentMaxPacketLength() const { | 275 QuicByteCount QuicPacketGenerator::GetCurrentMaxPacketLength() const { |
276 return packet_creator_.max_packet_length(); | 276 return packet_creator_.max_packet_length(); |
277 } | 277 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 void QuicPacketGenerator::SetCurrentPath( | 320 void QuicPacketGenerator::SetCurrentPath( |
321 QuicPathId path_id, | 321 QuicPathId path_id, |
322 QuicPacketNumber least_packet_awaited_by_peer, | 322 QuicPacketNumber least_packet_awaited_by_peer, |
323 QuicPacketCount max_packets_in_flight) { | 323 QuicPacketCount max_packets_in_flight) { |
324 packet_creator_.SetCurrentPath(path_id, least_packet_awaited_by_peer, | 324 packet_creator_.SetCurrentPath(path_id, least_packet_awaited_by_peer, |
325 max_packets_in_flight); | 325 max_packets_in_flight); |
326 } | 326 } |
327 | 327 |
328 } // namespace net | 328 } // namespace net |
OLD | NEW |