Chromium Code Reviews| Index: net/quic/quic_chromium_client_stream.h |
| diff --git a/net/quic/quic_chromium_client_stream.h b/net/quic/quic_chromium_client_stream.h |
| index 1412c09819af30b6e901e873100b6c27e05f2cdb..7d5add1a4afd1d63c6854e7dbdd1e9b86e902ac0 100644 |
| --- a/net/quic/quic_chromium_client_stream.h |
| +++ b/net/quic/quic_chromium_client_stream.h |
| @@ -9,6 +9,7 @@ |
| #include <stddef.h> |
| +#include "base/callback_forward.h" |
| #include "base/macros.h" |
| #include "net/base/ip_endpoint.h" |
| #include "net/base/upload_data_stream.h" |
| @@ -96,8 +97,10 @@ class NET_EXPORT_PRIVATE QuicChromiumClientStream : public QuicSpdyStream { |
| using QuicSpdyStream::HasBufferedData; |
| private: |
| - void NotifyDelegateOfHeadersCompleteLater(size_t frame_len); |
| - void NotifyDelegateOfHeadersComplete(size_t frame_len); |
| + void NotifyDelegateOfHeadersCompleteLater(const SpdyHeaderBlock& headers, |
| + size_t frame_len); |
| + void NotifyDelegateOfHeadersComplete(SpdyHeaderBlock headers, |
| + size_t frame_len); |
|
Ryan Hamilton
2016/02/24 00:34:00
I wonder if this can be done in a stand-alone CL.
Buck
2016/02/26 23:54:15
Done.
|
| void NotifyDelegateOfDataAvailableLater(); |
| void NotifyDelegateOfDataAvailable(); |
| @@ -110,6 +113,9 @@ class NET_EXPORT_PRIVATE QuicChromiumClientStream : public QuicSpdyStream { |
| QuicClientSessionBase* session_; |
| + // Holds notifications generated before delegate_ is set. |
| + std::deque<base::Closure> delegate_tasks_; |
| + |
| base::WeakPtrFactory<QuicChromiumClientStream> weak_factory_; |
| DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientStream); |