| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_QUIC_HEADERS_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| 6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ | 6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // ReliableQuicStream implementation | 36 // ReliableQuicStream implementation |
| 37 virtual uint32 ProcessRawData(const char* data, uint32 data_len) OVERRIDE; | 37 virtual uint32 ProcessRawData(const char* data, uint32 data_len) OVERRIDE; |
| 38 virtual QuicPriority EffectivePriority() const OVERRIDE; | 38 virtual QuicPriority EffectivePriority() const OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 class SpdyFramerVisitor; | 41 class SpdyFramerVisitor; |
| 42 | 42 |
| 43 // The following methods are called by the SimpleVisitor. | 43 // The following methods are called by the SimpleVisitor. |
| 44 | 44 |
| 45 // Called when a SYN_STREAM frame has been received. | 45 // Called when a SYN_STREAM frame has been received. |
| 46 void OnSynStream(SpdyStreamId stream_id, | 46 void OnSynStream(SpdyStreamId stream_id, SpdyPriority priority, bool fin); |
| 47 SpdyPriority priority, | |
| 48 bool fin); | |
| 49 | 47 |
| 50 // Called when a SYN_REPLY frame been received. | 48 // Called when a SYN_REPLY frame been received. |
| 51 void OnSynReply(SpdyStreamId stream_id, bool fin); | 49 void OnSynReply(SpdyStreamId stream_id, bool fin); |
| 52 | 50 |
| 53 // Called when a chunk of header data is available. This is called | 51 // Called when a chunk of header data is available. This is called |
| 54 // after OnSynStream, or OnSynReply. | 52 // after OnSynStream, or OnSynReply. |
| 55 // |stream_id| The stream receiving the header data. | 53 // |stream_id| The stream receiving the header data. |
| 56 // |header_data| A buffer containing the header data chunk received. | 54 // |header_data| A buffer containing the header data chunk received. |
| 57 // |len| The length of the header data buffer. A length of zero indicates | 55 // |len| The length of the header data buffer. A length of zero indicates |
| 58 // that the header data block has been completely sent. | 56 // that the header data block has been completely sent. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 73 | 71 |
| 74 SpdyFramer spdy_framer_; | 72 SpdyFramer spdy_framer_; |
| 75 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 73 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
| 76 | 74 |
| 77 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 75 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 } // namespace net | 78 } // namespace net |
| 81 | 79 |
| 82 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ | 80 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| OLD | NEW |