Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Unified Diff: net/quic/quic_chromium_client_stream.h

Issue 1692253004: QUIC - chromium server push support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial for-review version Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698