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

Side by Side Diff: net/quic/quic_stream_factory.h

Issue 318993004: To mitigate the effects of hanging 0-RTT QUIC connections, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/quic/quic_stream_factory.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_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Called by a session when it becomes idle. 118 // Called by a session when it becomes idle.
119 void OnIdleSession(QuicClientSession* session); 119 void OnIdleSession(QuicClientSession* session);
120 120
121 // Called by a session when it is going away and no more streams should be 121 // Called by a session when it is going away and no more streams should be
122 // created on it. 122 // created on it.
123 void OnSessionGoingAway(QuicClientSession* session); 123 void OnSessionGoingAway(QuicClientSession* session);
124 124
125 // Called by a session after it shuts down. 125 // Called by a session after it shuts down.
126 void OnSessionClosed(QuicClientSession* session); 126 void OnSessionClosed(QuicClientSession* session);
127 127
128 // Called by a session whose connection has timed out.
129 void OnSessionConnectTimeout(QuicClientSession* session);
130
128 // Cancels a pending request. 131 // Cancels a pending request.
129 void CancelRequest(QuicStreamRequest* request); 132 void CancelRequest(QuicStreamRequest* request);
130 133
131 // Closes all current sessions. 134 // Closes all current sessions.
132 void CloseAllSessions(int error); 135 void CloseAllSessions(int error);
133 136
134 base::Value* QuicStreamFactoryInfoToValue() const; 137 base::Value* QuicStreamFactoryInfoToValue() const;
135 138
136 // Delete all cached state objects in |crypto_config_|. 139 // Delete all cached state objects in |crypto_config_|.
137 void ClearCachedStatesInCryptoConfig(); 140 void ClearCachedStatesInCryptoConfig();
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 uint64 port_seed_; 285 uint64 port_seed_;
283 286
284 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 287 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
285 288
286 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 289 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
287 }; 290 };
288 291
289 } // namespace net 292 } // namespace net
290 293
291 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 294 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698