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

Unified Diff: net/quic/chromium/quic_chromium_client_stream.h

Issue 2865893002: Buffer initial response headers in QuicChromiumClientStream (Closed)
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « no previous file | net/quic/chromium/quic_chromium_client_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_chromium_client_stream.h
diff --git a/net/quic/chromium/quic_chromium_client_stream.h b/net/quic/chromium/quic_chromium_client_stream.h
index cd867e2092c204e2417881c24de79c49c9c36d80..ce47b64b26b420c481ecc557b17aa731348ed94e 100644
--- a/net/quic/chromium/quic_chromium_client_stream.h
+++ b/net/quic/chromium/quic_chromium_client_stream.h
@@ -126,7 +126,6 @@ class NET_EXPORT_PRIVATE QuicChromiumClientStream : public QuicSpdyStream {
size_t frame_len);
void NotifyDelegateOfDataAvailableLater();
void NotifyDelegateOfDataAvailable();
- void RunOrBuffer(base::Closure closure);
NetLogWithSource net_log_;
Delegate* delegate_;
@@ -145,8 +144,10 @@ class NET_EXPORT_PRIVATE QuicChromiumClientStream : public QuicSpdyStream {
// Set to false if this stream to not be migrated during connection migration.
bool can_migrate_;
- // Holds notifications generated before delegate_ is set.
- std::deque<base::Closure> delegate_tasks_;
+ // Stores the initial header if they arrive before the delegate.
+ SpdyHeaderBlock initial_headers_;
+ // Length of the HEADERS frame containing initial headers.
+ size_t initial_headers_frame_len_;
base::WeakPtrFactory<QuicChromiumClientStream> weak_factory_;
« no previous file with comments | « no previous file | net/quic/chromium/quic_chromium_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698