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_window_update_frame.h" | 5 #include "net/quic/core/frames/quic_window_update_frame.h" |
6 | 6 |
7 using std::ostream; | |
8 | |
9 namespace net { | 7 namespace net { |
10 | 8 |
11 QuicWindowUpdateFrame::QuicWindowUpdateFrame(QuicStreamId stream_id, | 9 QuicWindowUpdateFrame::QuicWindowUpdateFrame(QuicStreamId stream_id, |
12 QuicStreamOffset byte_offset) | 10 QuicStreamOffset byte_offset) |
13 : stream_id(stream_id), byte_offset(byte_offset) {} | 11 : stream_id(stream_id), byte_offset(byte_offset) {} |
14 | 12 |
15 ostream& operator<<(ostream& os, | 13 std::ostream& operator<<(std::ostream& os, |
16 const QuicWindowUpdateFrame& window_update_frame) { | 14 const QuicWindowUpdateFrame& window_update_frame) { |
17 os << "{ stream_id: " << window_update_frame.stream_id | 15 os << "{ stream_id: " << window_update_frame.stream_id |
18 << ", byte_offset: " << window_update_frame.byte_offset << " }\n"; | 16 << ", byte_offset: " << window_update_frame.byte_offset << " }\n"; |
19 return os; | 17 return os; |
20 } | 18 } |
21 | 19 |
22 } // namespace net | 20 } // namespace net |
OLD | NEW |