OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_QUIC_SPDY_SESSION_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ |
6 #define NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "net/quic/core/quic_packets.h" | 9 #include "net/quic/core/quic_packets.h" |
10 #include "net/quic/core/quic_write_blocked_list.h" | 10 #include "net/quic/core/quic_write_blocked_list.h" |
| 11 #include "net/spdy/spdy_framer.h" |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 | 14 |
14 class QuicHeadersStream; | 15 class QuicHeadersStream; |
15 class QuicSpdySession; | 16 class QuicSpdySession; |
| 17 class QuicHpackDebugVisitor; |
16 | 18 |
17 namespace test { | 19 namespace test { |
18 | 20 |
19 class QuicSpdySessionPeer { | 21 class QuicSpdySessionPeer { |
20 public: | 22 public: |
21 static QuicHeadersStream* GetHeadersStream(QuicSpdySession* session); | 23 static QuicHeadersStream* GetHeadersStream(QuicSpdySession* session); |
22 static void SetHeadersStream(QuicSpdySession* session, | 24 static void SetHeadersStream(QuicSpdySession* session, |
23 QuicHeadersStream* headers_stream); | 25 QuicHeadersStream* headers_stream); |
24 static void SetForceHolBlocking(QuicSpdySession* session, bool value); | 26 static void SetForceHolBlocking(QuicSpdySession* session, bool value); |
| 27 static const SpdyFramer& GetSpdyFramer(QuicSpdySession* session); |
| 28 static void SetHpackEncoderDebugVisitor( |
| 29 QuicSpdySession* session, |
| 30 std::unique_ptr<QuicHpackDebugVisitor> visitor); |
| 31 static void SetHpackDecoderDebugVisitor( |
| 32 QuicSpdySession* session, |
| 33 std::unique_ptr<QuicHpackDebugVisitor> visitor); |
| 34 static void SetMaxUncompressedHeaderBytes( |
| 35 QuicSpdySession* session, |
| 36 size_t set_max_uncompressed_header_bytes); |
| 37 static size_t WriteHeadersImpl( |
| 38 QuicSpdySession* session, |
| 39 QuicStreamId id, |
| 40 SpdyHeaderBlock headers, |
| 41 bool fin, |
| 42 SpdyPriority priority, |
| 43 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener); |
25 | 44 |
26 private: | 45 private: |
27 DISALLOW_COPY_AND_ASSIGN(QuicSpdySessionPeer); | 46 DISALLOW_COPY_AND_ASSIGN(QuicSpdySessionPeer); |
28 }; | 47 }; |
29 | 48 |
30 } // namespace test | 49 } // namespace test |
31 | 50 |
32 } // namespace net | 51 } // namespace net |
33 | 52 |
34 #endif // NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ | 53 #endif // NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ |
OLD | NEW |