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

Side by Side Diff: net/tools/quic/quic_server_session.h

Issue 1539333003: Delete unused methods in QuicServerSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@110244865
Patch Set: Created 4 years, 12 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 | « no previous file | no next file » | 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 // A server specific QuicSession subclass. 5 // A server specific QuicSession subclass.
6 6
7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 void Initialize() override; 71 void Initialize() override;
72 72
73 const QuicCryptoServerStreamBase* crypto_stream() const { 73 const QuicCryptoServerStreamBase* crypto_stream() const {
74 return crypto_stream_.get(); 74 return crypto_stream_.get();
75 } 75 }
76 76
77 // Override base class to process FEC config received from client. 77 // Override base class to process FEC config received from client.
78 void OnConfigNegotiated() override; 78 void OnConfigNegotiated() override;
79 79
80 bool UsingStatelessRejectsIfPeerSupported() {
81 if (GetCryptoStream() == nullptr) {
82 return false;
83 }
84 return GetCryptoStream()->UseStatelessRejectsIfPeerSupported();
85 }
86
87 bool PeerSupportsStatelessRejects() {
88 if (GetCryptoStream() == nullptr) {
89 return false;
90 }
91 return GetCryptoStream()->PeerSupportsStatelessRejects();
92 }
93
94 void set_serving_region(const std::string& serving_region) { 80 void set_serving_region(const std::string& serving_region) {
95 serving_region_ = serving_region; 81 serving_region_ = serving_region;
96 } 82 }
97 83
98 protected: 84 protected:
99 // QuicSession methods: 85 // QuicSession methods:
100 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override; 86 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override;
101 QuicSpdyStream* CreateOutgoingDynamicStream(SpdyPriority priority) override; 87 QuicSpdyStream* CreateOutgoingDynamicStream(SpdyPriority priority) override;
102 QuicCryptoServerStreamBase* GetCryptoStream() override; 88 QuicCryptoServerStreamBase* GetCryptoStream() override;
103 89
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Number of packets sent to the peer, at the time we last sent a SCUP. 126 // Number of packets sent to the peer, at the time we last sent a SCUP.
141 int64 last_scup_packet_number_; 127 int64 last_scup_packet_number_;
142 128
143 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 129 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
144 }; 130 };
145 131
146 } // namespace tools 132 } // namespace tools
147 } // namespace net 133 } // namespace net
148 134
149 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 135 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698