| Index: net/quic/chromium/quic_chromium_client_session.h
|
| diff --git a/net/quic/chromium/quic_chromium_client_session.h b/net/quic/chromium/quic_chromium_client_session.h
|
| index 0045912eae44358ad6d15410824678f7b164dcf7..9aa7de5372b7bdcaec695a32a73ba83ad1f4e53d 100644
|
| --- a/net/quic/chromium/quic_chromium_client_session.h
|
| +++ b/net/quic/chromium/quic_chromium_client_session.h
|
| @@ -38,6 +38,7 @@
|
| #include "net/quic/core/quic_server_id.h"
|
| #include "net/quic/core/quic_time.h"
|
| #include "net/socket/socket_performance_watcher.h"
|
| +#include "net/spdy/push_delegate.h"
|
|
|
| namespace net {
|
|
|
| @@ -297,7 +298,7 @@ class NET_EXPORT_PRIVATE QuicChromiumClientSession
|
| // Returns true if session has one ore more streams marked as non-migratable.
|
| bool HasNonMigratableStreams() const;
|
|
|
| - void HandlePromised(QuicStreamId associated_id,
|
| + bool HandlePromised(QuicStreamId associated_id,
|
| QuicStreamId promised_id,
|
| const SpdyHeaderBlock& headers) override;
|
|
|
| @@ -305,6 +306,10 @@ class NET_EXPORT_PRIVATE QuicChromiumClientSession
|
|
|
| void OnPushStreamTimedOut(QuicStreamId stream_id) override;
|
|
|
| + void set_push_delegte(PushDelegate* push_delegate) {
|
| + push_delegate_ = push_delegate;
|
| + }
|
| +
|
| // Cancels the push if the push stream for |url| has not been claimed and is
|
| // still active. Otherwise, no-op.
|
| void CancelPush(const GURL& url);
|
| @@ -385,6 +390,7 @@ class NET_EXPORT_PRIVATE QuicChromiumClientSession
|
| // True when the session receives a go away from server due to port migration.
|
| bool port_migration_detected_;
|
| TokenBindingSignatureMap token_binding_signatures_;
|
| + PushDelegate* push_delegate_;
|
| // UMA histogram counters for streams pushed to this session.
|
| int streams_pushed_count_;
|
| int streams_pushed_and_claimed_count_;
|
|
|