| 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 #ifndef NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ | 6 #define NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 const QuicPacketHeader& header() const; | 37 const QuicPacketHeader& header() const; |
| 38 size_t num_frames() const; | 38 size_t num_frames() const; |
| 39 const std::vector<QuicAckFrame>& ack_frames() const; | 39 const std::vector<QuicAckFrame>& ack_frames() const; |
| 40 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const; | 40 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const; |
| 41 const std::vector<QuicCongestionFeedbackFrame>& feedback_frames() const; | 41 const std::vector<QuicCongestionFeedbackFrame>& feedback_frames() const; |
| 42 const std::vector<QuicGoAwayFrame>& goaway_frames() const; | 42 const std::vector<QuicGoAwayFrame>& goaway_frames() const; |
| 43 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const; | 43 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const; |
| 44 const std::vector<QuicStreamFrame>& stream_frames() const; | 44 const std::vector<QuicStreamFrame>& stream_frames() const; |
| 45 const QuicFecData& fec_data() const; | 45 const QuicFecData& fec_data() const; |
| 46 // HandshakeMessage returns the index'th stream frame as a freshly allocated | |
| 47 // handshake message which the caller takes ownership of. If parsing fails | |
| 48 // then NULL is returned. | |
| 49 CryptoHandshakeMessage* HandshakeMessage(size_t index) const; | |
| 50 | 46 |
| 51 private: | 47 private: |
| 52 QuicFramer framer_; | 48 QuicFramer framer_; |
| 53 scoped_ptr<SimpleFramerVisitor> visitor_; | 49 scoped_ptr<SimpleFramerVisitor> visitor_; |
| 54 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); | 50 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); |
| 55 }; | 51 }; |
| 56 | 52 |
| 57 } // namespace test | 53 } // namespace test |
| 58 | 54 |
| 59 } // namespace net | 55 } // namespace net |
| 60 | 56 |
| 61 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ | 57 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| OLD | NEW |