| 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 #ifndef NET_QUIC_CORE_FRAMES_QUIC_WINDOW_UPDATE_FRAME_H_ | 5 #ifndef NET_QUIC_CORE_FRAMES_QUIC_WINDOW_UPDATE_FRAME_H_ | 
| 6 #define NET_QUIC_CORE_FRAMES_QUIC_WINDOW_UPDATE_FRAME_H_ | 6 #define NET_QUIC_CORE_FRAMES_QUIC_WINDOW_UPDATE_FRAME_H_ | 
| 7 | 7 | 
|  | 8 #include <ostream> | 
|  | 9 | 
| 8 #include "net/quic/core/quic_types.h" | 10 #include "net/quic/core/quic_types.h" | 
| 9 #include "net/quic/platform/api/quic_export.h" | 11 #include "net/quic/platform/api/quic_export.h" | 
| 10 | 12 | 
| 11 namespace net { | 13 namespace net { | 
| 12 | 14 | 
| 13 // Flow control updates per-stream and at the connection levoel. | 15 // Flow control updates per-stream and at the connection levoel. | 
| 14 // Based on SPDY's WINDOW_UPDATE frame, but uses an absolute byte offset rather | 16 // Based on SPDY's WINDOW_UPDATE frame, but uses an absolute byte offset rather | 
| 15 // than a window delta. | 17 // than a window delta. | 
| 16 // TODO(rjshade): A possible future optimization is to make stream_id and | 18 // TODO(rjshade): A possible future optimization is to make stream_id and | 
| 17 //                byte_offset variable length, similar to stream frames. | 19 //                byte_offset variable length, similar to stream frames. | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 28   QuicStreamId stream_id; | 30   QuicStreamId stream_id; | 
| 29 | 31 | 
| 30   // Byte offset in the stream or connection. The receiver of this frame must | 32   // Byte offset in the stream or connection. The receiver of this frame must | 
| 31   // not send data which would result in this offset being exceeded. | 33   // not send data which would result in this offset being exceeded. | 
| 32   QuicStreamOffset byte_offset; | 34   QuicStreamOffset byte_offset; | 
| 33 }; | 35 }; | 
| 34 | 36 | 
| 35 }  // namespace net | 37 }  // namespace net | 
| 36 | 38 | 
| 37 #endif  // NET_QUIC_CORE_FRAMES_QUIC_WINDOW_UPDATE_FRAME_H_ | 39 #endif  // NET_QUIC_CORE_FRAMES_QUIC_WINDOW_UPDATE_FRAME_H_ | 
| OLD | NEW | 
|---|