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

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

Issue 2933773002: When a stream is created for a QUIC session to a server which has been (Closed)
Patch Set: Fix zhongyi's comments Created 3 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
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_CHROMIUM_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // currently disabled, then it closes the connection and returns true. 243 // currently disabled, then it closes the connection and returns true.
244 bool OnHandshakeConfirmed(QuicChromiumClientSession* session); 244 bool OnHandshakeConfirmed(QuicChromiumClientSession* session);
245 245
246 // Called when a TCP job completes for an origin that QUIC potentially 246 // Called when a TCP job completes for an origin that QUIC potentially
247 // could be used for. 247 // could be used for.
248 void OnTcpJobCompleted(bool succeeded); 248 void OnTcpJobCompleted(bool succeeded);
249 249
250 // Called by a session when it becomes idle. 250 // Called by a session when it becomes idle.
251 void OnIdleSession(QuicChromiumClientSession* session); 251 void OnIdleSession(QuicChromiumClientSession* session);
252 252
253 // Returns true if QUIC is know to be broken for |session|.
254 bool IsQuicBroken(QuicChromiumClientSession* session);
255
253 // Called by a session when it is going away and no more streams should be 256 // Called by a session when it is going away and no more streams should be
254 // created on it. 257 // created on it.
255 void OnSessionGoingAway(QuicChromiumClientSession* session); 258 void OnSessionGoingAway(QuicChromiumClientSession* session);
256 259
257 // Called by a session after it shuts down. 260 // Called by a session after it shuts down.
258 void OnSessionClosed(QuicChromiumClientSession* session); 261 void OnSessionClosed(QuicChromiumClientSession* session);
259 262
260 // Called by a session when it blackholes after the handshake is confirmed. 263 // Called by a session when it blackholes after the handshake is confirmed.
261 void OnBlackholeAfterHandshakeConfirmed(QuicChromiumClientSession* session); 264 void OnBlackholeAfterHandshakeConfirmed(QuicChromiumClientSession* session);
262 265
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 const scoped_refptr<SSLConfigService> ssl_config_service_; 576 const scoped_refptr<SSLConfigService> ssl_config_service_;
574 577
575 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 578 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
576 579
577 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 580 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
578 }; 581 };
579 582
580 } // namespace net 583 } // namespace net
581 584
582 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ 585 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_network_transaction_unittest.cc ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698