| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "net/quic/quic_framer.h" |
| 11 #include "net/quic/quic_protocol.h" |
| 12 |
| 13 namespace net { |
| 14 |
| 15 struct QuicAckFrame; |
| 16 class QuicConnection; |
| 17 class QuicConnectionVisitorInterface; |
| 18 class QuicPacketCreator; |
| 19 class ReceiveAlgorithmInterface; |
| 20 class SendAlgorithmInterface; |
| 21 |
| 22 namespace test { |
| 23 |
| 24 class SimpleFramerVisitor; |
| 25 |
| 26 // Peer to make public a number of otherwise private QuicConnection methods. |
| 27 class SimpleQuicFramer { |
| 28 public: |
| 29 SimpleQuicFramer(); |
| 30 ~SimpleQuicFramer(); |
| 31 |
| 32 bool ProcessPacket(const QuicEncryptedPacket& packet); |
| 33 bool ProcessPacket(const QuicPacket& packet); |
| 34 |
| 35 const QuicPacketHeader& header() const; |
| 36 size_t num_frames() const; |
| 37 const std::vector<QuicAckFrame>& ack_frames() const; |
| 38 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const; |
| 39 const std::vector<QuicCongestionFeedbackFrame>& feedback_frames() const; |
| 40 const std::vector<QuicGoAwayFrame>& goaway_frames() const; |
| 41 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const; |
| 42 const std::vector<QuicStreamFrame>& stream_frames() const; |
| 43 const QuicFecData& fec_data() const; |
| 44 |
| 45 private: |
| 46 QuicFramer framer_; |
| 47 SimpleFramerVisitor* visitor_; |
| 48 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); |
| 49 }; |
| 50 |
| 51 } // namespace test |
| 52 |
| 53 } // namespace net |
| 54 |
| 55 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| OLD | NEW |