Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: net/quic/test_tools/reliable_quic_stream_peer.h

Issue 2387753002: Release read buffer of QuicCryptoStream when incoming message become less frequent. Protected by --… (Closed)
Patch Set: enable quic crypto stream release buffer Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_RELIABLE_QUIC_STREAM_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.h"
12 #include "net/quic/core/quic_protocol.h" 12 #include "net/quic/core/quic_protocol.h"
13 #include "net/quic/core/quic_stream_sequencer.h"
13 14
14 namespace net { 15 namespace net {
15 16
16 class ReliableQuicStream; 17 class ReliableQuicStream;
17 18
18 namespace test { 19 namespace test {
19 20
20 class ReliableQuicStreamPeer { 21 class ReliableQuicStreamPeer {
21 public: 22 public:
22 static void SetWriteSideClosed(bool value, ReliableQuicStream* stream); 23 static void SetWriteSideClosed(bool value, ReliableQuicStream* stream);
(...skipping 14 matching lines...) Expand all
37 38
38 static bool StreamContributesToConnectionFlowControl( 39 static bool StreamContributesToConnectionFlowControl(
39 ReliableQuicStream* stream); 40 ReliableQuicStream* stream);
40 41
41 static void WriteOrBufferData( 42 static void WriteOrBufferData(
42 ReliableQuicStream* stream, 43 ReliableQuicStream* stream,
43 base::StringPiece data, 44 base::StringPiece data,
44 bool fin, 45 bool fin,
45 QuicAckListenerInterface* ack_notifier_delegate); 46 QuicAckListenerInterface* ack_notifier_delegate);
46 47
48 static net::QuicStreamSequencer* sequencer(ReliableQuicStream* stream);
49
47 private: 50 private:
48 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStreamPeer); 51 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStreamPeer);
49 }; 52 };
50 53
51 } // namespace test 54 } // namespace test
52 } // namespace net 55 } // namespace net
53 56
54 #endif // NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_ 57 #endif // NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_stream_sequencer_peer.cc ('k') | net/quic/test_tools/reliable_quic_stream_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698