| OLD | NEW |
| 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_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 315 |
| 316 const LoadTimingInfo::ConnectTiming& GetConnectTiming(); | 316 const LoadTimingInfo::ConnectTiming& GetConnectTiming(); |
| 317 | 317 |
| 318 QuicVersion GetQuicVersion() const; | 318 QuicVersion GetQuicVersion() const; |
| 319 | 319 |
| 320 // Returns the estimate of dynamically allocated memory in bytes. | 320 // Returns the estimate of dynamically allocated memory in bytes. |
| 321 // See base/trace_event/memory_usage_estimator.h. | 321 // See base/trace_event/memory_usage_estimator.h. |
| 322 // TODO(xunjieli): It only tracks |packet_readers_|. Write a better estimate. | 322 // TODO(xunjieli): It only tracks |packet_readers_|. Write a better estimate. |
| 323 size_t EstimateMemoryUsage() const; | 323 size_t EstimateMemoryUsage() const; |
| 324 | 324 |
| 325 bool callback_not_null() const { return !callback_.is_null(); } |
| 326 bool received_go_away_; |
| 327 bool received_read_error_; |
| 328 bool connection_closed_; |
| 329 bool notified_session_going_away_; |
| 330 bool notified_session_closed_later_; |
| 331 bool notified_session_closed_; |
| 332 |
| 325 protected: | 333 protected: |
| 326 // QuicSession methods: | 334 // QuicSession methods: |
| 327 bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override; | 335 bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override; |
| 328 bool ShouldCreateOutgoingDynamicStream() override; | 336 bool ShouldCreateOutgoingDynamicStream() override; |
| 329 | 337 |
| 330 QuicChromiumClientStream* CreateIncomingDynamicStream( | 338 QuicChromiumClientStream* CreateIncomingDynamicStream( |
| 331 QuicStreamId id) override; | 339 QuicStreamId id) override; |
| 332 | 340 |
| 333 private: | 341 private: |
| 334 friend class test::QuicChromiumClientSessionPeer; | 342 friend class test::QuicChromiumClientSessionPeer; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 // the current sockets_.size() == the passed in value. | 421 // the current sockets_.size() == the passed in value. |
| 414 bool migration_pending_; // True while migration is underway. | 422 bool migration_pending_; // True while migration is underway. |
| 415 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 423 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 416 | 424 |
| 417 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 425 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 418 }; | 426 }; |
| 419 | 427 |
| 420 } // namespace net | 428 } // namespace net |
| 421 | 429 |
| 422 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 430 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |