| 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_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 void DeletePromised(QuicClientPromisedInfo* promised) override; | 304 void DeletePromised(QuicClientPromisedInfo* promised) override; |
| 305 | 305 |
| 306 void OnPushStreamTimedOut(QuicStreamId stream_id) override; | 306 void OnPushStreamTimedOut(QuicStreamId stream_id) override; |
| 307 | 307 |
| 308 // Cancels the push if the push stream for |url| has not been claimed and is | 308 // Cancels the push if the push stream for |url| has not been claimed and is |
| 309 // still active. Otherwise, no-op. | 309 // still active. Otherwise, no-op. |
| 310 void CancelPush(const GURL& url); | 310 void CancelPush(const GURL& url); |
| 311 | 311 |
| 312 const LoadTimingInfo::ConnectTiming& GetConnectTiming(); | 312 const LoadTimingInfo::ConnectTiming& GetConnectTiming(); |
| 313 | 313 |
| 314 QuicVersion GetQuicVersion() const; |
| 315 |
| 314 protected: | 316 protected: |
| 315 // QuicSession methods: | 317 // QuicSession methods: |
| 316 bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override; | 318 bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override; |
| 317 bool ShouldCreateOutgoingDynamicStream() override; | 319 bool ShouldCreateOutgoingDynamicStream() override; |
| 318 | 320 |
| 319 QuicChromiumClientStream* CreateIncomingDynamicStream( | 321 QuicChromiumClientStream* CreateIncomingDynamicStream( |
| 320 QuicStreamId id) override; | 322 QuicStreamId id) override; |
| 321 | 323 |
| 322 private: | 324 private: |
| 323 friend class test::QuicChromiumClientSessionPeer; | 325 friend class test::QuicChromiumClientSessionPeer; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // the current sockets_.size() == the passed in value. | 401 // the current sockets_.size() == the passed in value. |
| 400 bool migration_pending_; // True while migration is underway. | 402 bool migration_pending_; // True while migration is underway. |
| 401 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 403 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 402 | 404 |
| 403 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 405 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 404 }; | 406 }; |
| 405 | 407 |
| 406 } // namespace net | 408 } // namespace net |
| 407 | 409 |
| 408 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 410 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |