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_connection.h" | 5 #include "net/quic/core/quic_connection.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2434 !visitor_->WillingAndAbleToWrite()) { | 2434 !visitor_->WillingAndAbleToWrite()) { |
2435 sent_packet_manager_.OnApplicationLimited(); | 2435 sent_packet_manager_.OnApplicationLimited(); |
2436 } | 2436 } |
2437 } | 2437 } |
2438 | 2438 |
2439 void QuicConnection::SetStreamNotifier( | 2439 void QuicConnection::SetStreamNotifier( |
2440 StreamNotifierInterface* stream_notifier) { | 2440 StreamNotifierInterface* stream_notifier) { |
2441 sent_packet_manager_.SetStreamNotifier(stream_notifier); | 2441 sent_packet_manager_.SetStreamNotifier(stream_notifier); |
2442 } | 2442 } |
2443 | 2443 |
| 2444 void QuicConnection::SetDelegateSavesData(bool delegate_saves_data) { |
| 2445 packet_generator_.SetDelegateSavesData(delegate_saves_data); |
| 2446 } |
| 2447 |
| 2448 void QuicConnection::SaveStreamData(QuicStreamId id, |
| 2449 QuicIOVector iov, |
| 2450 size_t iov_offset, |
| 2451 QuicStreamOffset offset, |
| 2452 QuicByteCount data_length) { |
| 2453 visitor_->SaveStreamData(id, iov, iov_offset, offset, data_length); |
| 2454 } |
| 2455 |
| 2456 bool QuicConnection::WriteStreamData(QuicStreamId id, |
| 2457 QuicStreamOffset offset, |
| 2458 QuicByteCount data_length, |
| 2459 QuicDataWriter* writer) { |
| 2460 return visitor_->WriteStreamData(id, offset, data_length, writer); |
| 2461 } |
| 2462 |
2444 } // namespace net | 2463 } // namespace net |
OLD | NEW |