| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 void Reset(); | 40 void Reset(); |
| 41 | 41 |
| 42 const QuicPacketHeader& header() const; | 42 const QuicPacketHeader& header() const; |
| 43 size_t num_frames() const; | 43 size_t num_frames() const; |
| 44 const std::vector<QuicAckFrame>& ack_frames() const; | 44 const std::vector<QuicAckFrame>& ack_frames() const; |
| 45 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const; | 45 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const; |
| 46 const std::vector<QuicStopWaitingFrame>& stop_waiting_frames() const; | 46 const std::vector<QuicStopWaitingFrame>& stop_waiting_frames() const; |
| 47 const std::vector<QuicPingFrame>& ping_frames() const; | 47 const std::vector<QuicPingFrame>& ping_frames() const; |
| 48 const std::vector<QuicGoAwayFrame>& goaway_frames() const; | 48 const std::vector<QuicGoAwayFrame>& goaway_frames() const; |
| 49 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const; | 49 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const; |
| 50 const std::vector<QuicStreamFrame*>& stream_frames() const; | 50 const std::vector<std::unique_ptr<QuicStreamFrame>>& stream_frames() const; |
| 51 const QuicVersionNegotiationPacket* version_negotiation_packet() const; | 51 const QuicVersionNegotiationPacket* version_negotiation_packet() const; |
| 52 | 52 |
| 53 QuicFramer* framer(); | 53 QuicFramer* framer(); |
| 54 | 54 |
| 55 void SetSupportedVersions(const QuicVersionVector& versions) { | 55 void SetSupportedVersions(const QuicVersionVector& versions) { |
| 56 framer_.SetSupportedVersions(versions); | 56 framer_.SetSupportedVersions(versions); |
| 57 } | 57 } |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 QuicFramer framer_; | 60 QuicFramer framer_; |
| 61 std::unique_ptr<SimpleFramerVisitor> visitor_; | 61 std::unique_ptr<SimpleFramerVisitor> visitor_; |
| 62 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); | 62 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace test | 65 } // namespace test |
| 66 | 66 |
| 67 } // namespace net | 67 } // namespace net |
| 68 | 68 |
| 69 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ | 69 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| OLD | NEW |