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

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

Issue 1009543004: Create a Perspective enum to use instead of a bool is_server to improve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NET_EXPORT_PRIVATE to fix compiler error Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SENT_PACKET_MANAGER_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
7 7
8 #include "net/quic/quic_protocol.h" 8 #include "net/quic/quic_protocol.h"
9 #include "net/quic/quic_sent_packet_manager.h" 9 #include "net/quic/quic_sent_packet_manager.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class SendAlgorithmInterface; 13 class SendAlgorithmInterface;
14 14
15 namespace test { 15 namespace test {
16 16
17 class QuicSentPacketManagerPeer { 17 class QuicSentPacketManagerPeer {
18 public: 18 public:
19 static size_t GetMaxTailLossProbes( 19 static size_t GetMaxTailLossProbes(
20 QuicSentPacketManager* sent_packet_manager); 20 QuicSentPacketManager* sent_packet_manager);
21 21
22 static void SetMaxTailLossProbes( 22 static void SetMaxTailLossProbes(
23 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes); 23 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes);
24 24
25 static bool GetUseNewRto(QuicSentPacketManager* sent_packet_manager); 25 static bool GetUseNewRto(QuicSentPacketManager* sent_packet_manager);
26 26
27 static QuicByteCount GetReceiveWindow( 27 static QuicByteCount GetReceiveWindow(
28 QuicSentPacketManager* sent_packet_manager); 28 QuicSentPacketManager* sent_packet_manager);
29 29
30 static void SetIsServer(QuicSentPacketManager* sent_packet_manager, 30 static void SetPerspective(QuicSentPacketManager* sent_packet_manager,
31 bool is_server); 31 Perspective perspective);
32 32
33 static const SendAlgorithmInterface* GetSendAlgorithm( 33 static const SendAlgorithmInterface* GetSendAlgorithm(
34 const QuicSentPacketManager& sent_packet_manager); 34 const QuicSentPacketManager& sent_packet_manager);
35 35
36 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, 36 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager,
37 SendAlgorithmInterface* send_algorithm); 37 SendAlgorithmInterface* send_algorithm);
38 38
39 static const LossDetectionInterface* GetLossAlgorithm( 39 static const LossDetectionInterface* GetLossAlgorithm(
40 QuicSentPacketManager* sent_packet_manager); 40 QuicSentPacketManager* sent_packet_manager);
41 41
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 private: 79 private:
80 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); 80 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer);
81 }; 81 };
82 82
83 } // namespace test 83 } // namespace test
84 84
85 } // namespace net 85 } // namespace net
86 86
87 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ 87 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_framer_peer.cc ('k') | net/quic/test_tools/quic_sent_packet_manager_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698