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

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

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 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
« no previous file with comments | « net/quic/test_tools/fake_proof_source.cc ('k') | net/quic/test_tools/quic_connection_peer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_QUIC_CONNECTION_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/quic/core/quic_connection.h" 9 #include "net/quic/core/quic_connection.h"
10 #include "net/quic/core/quic_connection_stats.h" 10 #include "net/quic/core/quic_connection_stats.h"
11 #include "net/quic/core/quic_packets.h" 11 #include "net/quic/core/quic_packets.h"
12 #include "net/quic/platform/api/quic_socket_address.h" 12 #include "net/quic/platform/api/quic_socket_address.h"
13 #include "net/quic/platform/api/quic_string_piece.h"
13 14
14 namespace net { 15 namespace net {
15 16
16 struct QuicPacketHeader; 17 struct QuicPacketHeader;
17 class QuicAlarm; 18 class QuicAlarm;
18 class QuicConnectionHelperInterface; 19 class QuicConnectionHelperInterface;
19 class QuicConnectionVisitorInterface; 20 class QuicConnectionVisitorInterface;
20 class QuicEncryptedPacket; 21 class QuicEncryptedPacket;
21 class QuicFramer; 22 class QuicFramer;
22 class QuicPacketCreator; 23 class QuicPacketCreator;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 static void SetPeerAddress(QuicConnection* connection, 64 static void SetPeerAddress(QuicConnection* connection,
64 const QuicSocketAddress& peer_address); 65 const QuicSocketAddress& peer_address);
65 66
66 static bool IsSilentCloseEnabled(QuicConnection* connection); 67 static bool IsSilentCloseEnabled(QuicConnection* connection);
67 68
68 static bool IsMultipathEnabled(QuicConnection* connection); 69 static bool IsMultipathEnabled(QuicConnection* connection);
69 70
70 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); 71 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer);
71 72
72 static void SetCurrentPacket(QuicConnection* connection, 73 static void SetCurrentPacket(QuicConnection* connection,
73 base::StringPiece current_packet); 74 QuicStringPiece current_packet);
74 75
75 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); 76 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection);
76 77
77 static QuicAlarmFactory* GetAlarmFactory(QuicConnection* connection); 78 static QuicAlarmFactory* GetAlarmFactory(QuicConnection* connection);
78 79
79 static QuicFramer* GetFramer(QuicConnection* connection); 80 static QuicFramer* GetFramer(QuicConnection* connection);
80 81
81 static QuicAlarm* GetAckAlarm(QuicConnection* connection); 82 static QuicAlarm* GetAckAlarm(QuicConnection* connection);
82 static QuicAlarm* GetPingAlarm(QuicConnection* connection); 83 static QuicAlarm* GetPingAlarm(QuicConnection* connection);
83 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); 84 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 120
120 private: 121 private:
121 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); 122 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer);
122 }; 123 };
123 124
124 } // namespace test 125 } // namespace test
125 126
126 } // namespace net 127 } // namespace net
127 128
128 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ 129 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/fake_proof_source.cc ('k') | net/quic/test_tools/quic_connection_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698