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 "net/quic/quic_protocol.h" | 9 #include "net/quic/quic_protocol.h" |
9 #include "net/quic/quic_write_blocked_list.h" | 10 #include "net/quic/quic_write_blocked_list.h" |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 | 13 |
13 class QuicHeadersStream; | 14 class QuicHeadersStream; |
14 class QuicSpdySession; | 15 class QuicSpdySession; |
15 | 16 |
16 namespace test { | 17 namespace test { |
17 | 18 |
18 class QuicSpdySessionPeer { | 19 class QuicSpdySessionPeer { |
19 public: | 20 public: |
20 static QuicHeadersStream* GetHeadersStream(QuicSpdySession* session); | 21 static QuicHeadersStream* GetHeadersStream(QuicSpdySession* session); |
21 static void SetHeadersStream(QuicSpdySession* session, | 22 static void SetHeadersStream(QuicSpdySession* session, |
22 QuicHeadersStream* headers_stream); | 23 QuicHeadersStream* headers_stream); |
23 | 24 |
24 private: | 25 private: |
25 DISALLOW_COPY_AND_ASSIGN(QuicSpdySessionPeer); | 26 DISALLOW_COPY_AND_ASSIGN(QuicSpdySessionPeer); |
26 }; | 27 }; |
27 | 28 |
28 } // namespace test | 29 } // namespace test |
29 | 30 |
30 } // namespace net | 31 } // namespace net |
31 | 32 |
32 #endif // NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ | 33 #endif // NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ |
OLD | NEW |