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

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

Issue 1775283002: [Domain Reliabiliy: net stack] Plumb received go away from server due to connection migration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (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 client specific QuicSession subclass. This class owns the underlying 5 // A client specific QuicSession subclass. This class owns the underlying
6 // QuicConnection and QuicConnectionHelper objects. The connection stores 6 // QuicConnection and QuicConnectionHelper objects. The connection stores
7 // a non-owning pointer to the helper so this session needs to ensure that 7 // a non-owning pointer to the helper so this session needs to ensure that
8 // the helper outlives the connection. 8 // the helper outlives the connection.
9 9
10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // OnReadComplete - when there is a read error. 287 // OnReadComplete - when there is a read error.
288 // This method closes all stream and performs any necessary cleanup. 288 // This method closes all stream and performs any necessary cleanup.
289 void CloseSessionOnErrorInner(int net_error, QuicErrorCode quic_error); 289 void CloseSessionOnErrorInner(int net_error, QuicErrorCode quic_error);
290 290
291 void CloseAllStreams(int net_error); 291 void CloseAllStreams(int net_error);
292 void CloseAllObservers(int net_error); 292 void CloseAllObservers(int net_error);
293 293
294 // Notifies the factory that this session is going away and no more streams 294 // Notifies the factory that this session is going away and no more streams
295 // should be created from it. This needs to be called before closing any 295 // should be created from it. This needs to be called before closing any
296 // streams, because closing a stream may cause a new stream to be created. 296 // streams, because closing a stream may cause a new stream to be created.
297 void NotifyFactoryOfSessionGoingAway(); 297 // If |is_connection_migrated| is true, also notifies the factory that this
298 // client receives a GoAway from server due to connection migration.
299 void NotifyFactoryOfSessionGoingAway(bool is_connection_migrated);
298 300
299 // Posts a task to notify the factory that this session has been closed. 301 // Posts a task to notify the factory that this session has been closed.
300 void NotifyFactoryOfSessionClosedLater(); 302 void NotifyFactoryOfSessionClosedLater();
301 303
302 // Notifies the factory that this session has been closed which will 304 // Notifies the factory that this session has been closed which will
303 // delete |this|. 305 // delete |this|.
304 void NotifyFactoryOfSessionClosed(); 306 void NotifyFactoryOfSessionClosed();
305 307
306 void OnConnectTimeout(); 308 void OnConnectTimeout();
307 309
(...skipping 23 matching lines...) Expand all
331 QuicDisabledReason disabled_reason_; 333 QuicDisabledReason disabled_reason_;
332 TokenBindingSignatureMap token_binding_signatures_; 334 TokenBindingSignatureMap token_binding_signatures_;
333 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; 335 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_;
334 336
335 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); 337 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession);
336 }; 338 };
337 339
338 } // namespace net 340 } // namespace net
339 341
340 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ 342 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698