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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 bool HasNonMigratableStreams() const; | 298 bool HasNonMigratableStreams() const; |
299 | 299 |
300 void HandlePromised(QuicStreamId associated_id, | 300 void HandlePromised(QuicStreamId associated_id, |
301 QuicStreamId promised_id, | 301 QuicStreamId promised_id, |
302 const SpdyHeaderBlock& headers) override; | 302 const SpdyHeaderBlock& headers) override; |
303 | 303 |
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 |
| 309 // still active. Otherwise, no-op. |
| 310 void CancelPush(const GURL& url); |
| 311 |
308 const LoadTimingInfo::ConnectTiming& GetConnectTiming(); | 312 const LoadTimingInfo::ConnectTiming& GetConnectTiming(); |
309 | 313 |
310 protected: | 314 protected: |
311 // QuicSession methods: | 315 // QuicSession methods: |
312 bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override; | 316 bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override; |
313 bool ShouldCreateOutgoingDynamicStream() override; | 317 bool ShouldCreateOutgoingDynamicStream() override; |
314 | 318 |
315 QuicChromiumClientStream* CreateIncomingDynamicStream( | 319 QuicChromiumClientStream* CreateIncomingDynamicStream( |
316 QuicStreamId id) override; | 320 QuicStreamId id) override; |
317 | 321 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 // the current sockets_.size() == the passed in value. | 399 // the current sockets_.size() == the passed in value. |
396 bool migration_pending_; // True while migration is underway. | 400 bool migration_pending_; // True while migration is underway. |
397 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 401 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
398 | 402 |
399 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 403 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
400 }; | 404 }; |
401 | 405 |
402 } // namespace net | 406 } // namespace net |
403 | 407 |
404 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 408 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
OLD | NEW |