| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 bool HasNonMigratableStreams() const; | 300 bool HasNonMigratableStreams() const; |
| 301 | 301 |
| 302 bool HandlePromised(QuicStreamId associated_id, | 302 bool HandlePromised(QuicStreamId associated_id, |
| 303 QuicStreamId promised_id, | 303 QuicStreamId promised_id, |
| 304 const SpdyHeaderBlock& headers) override; | 304 const SpdyHeaderBlock& headers) override; |
| 305 | 305 |
| 306 void DeletePromised(QuicClientPromisedInfo* promised) override; | 306 void DeletePromised(QuicClientPromisedInfo* promised) override; |
| 307 | 307 |
| 308 void OnPushStreamTimedOut(QuicStreamId stream_id) override; | 308 void OnPushStreamTimedOut(QuicStreamId stream_id) override; |
| 309 | 309 |
| 310 void set_push_delegte(ServerPushDelegate* push_delegate) { | 310 void set_push_delegate(ServerPushDelegate* push_delegate) { |
| 311 push_delegate_ = push_delegate; | 311 push_delegate_ = push_delegate; |
| 312 } | 312 } |
| 313 | 313 |
| 314 // Cancels the push if the push stream for |url| has not been claimed and is | 314 // Cancels the push if the push stream for |url| has not been claimed and is |
| 315 // still active. Otherwise, no-op. | 315 // still active. Otherwise, no-op. |
| 316 void CancelPush(const GURL& url); | 316 void CancelPush(const GURL& url); |
| 317 | 317 |
| 318 const LoadTimingInfo::ConnectTiming& GetConnectTiming(); | 318 const LoadTimingInfo::ConnectTiming& GetConnectTiming(); |
| 319 | 319 |
| 320 QuicVersion GetQuicVersion() const; | 320 QuicVersion GetQuicVersion() const; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 // the current sockets_.size() == the passed in value. | 410 // the current sockets_.size() == the passed in value. |
| 411 bool migration_pending_; // True while migration is underway. | 411 bool migration_pending_; // True while migration is underway. |
| 412 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 412 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 413 | 413 |
| 414 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 414 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 415 }; | 415 }; |
| 416 | 416 |
| 417 } // namespace net | 417 } // namespace net |
| 418 | 418 |
| 419 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 419 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |