| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/frames/quic_stream_frame.h" | 5 #include "net/quic/core/frames/quic_stream_frame.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "net/quic/platform/api/quic_logging.h" |
| 8 | 8 |
| 9 using base::StringPiece; | 9 using base::StringPiece; |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 void StreamBufferDeleter::operator()(char* buffer) const { | 13 void StreamBufferDeleter::operator()(char* buffer) const { |
| 14 if (allocator_ != nullptr && buffer != nullptr) { | 14 if (allocator_ != nullptr && buffer != nullptr) { |
| 15 allocator_->Delete(buffer); | 15 allocator_->Delete(buffer); |
| 16 } | 16 } |
| 17 } | 17 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 std::ostream& operator<<(std::ostream& os, | 74 std::ostream& operator<<(std::ostream& os, |
| 75 const QuicStreamFrame& stream_frame) { | 75 const QuicStreamFrame& stream_frame) { |
| 76 os << "{ stream_id: " << stream_frame.stream_id | 76 os << "{ stream_id: " << stream_frame.stream_id |
| 77 << ", fin: " << stream_frame.fin << ", offset: " << stream_frame.offset | 77 << ", fin: " << stream_frame.fin << ", offset: " << stream_frame.offset |
| 78 << ", length: " << stream_frame.data_length << " }\n"; | 78 << ", length: " << stream_frame.data_length << " }\n"; |
| 79 return os; | 79 return os; |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace net | 82 } // namespace net |
| OLD | NEW |