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

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

Issue 2324183002: Implement QuicHttpStream::GetLoadTimingInfo (Closed)
Patch Set: fix flaky TestTwoRequests Created 4 years, 3 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 | « net/quic/chromium/quic_chromium_client_stream.cc ('k') | net/quic/chromium/quic_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_http_stream.h
diff --git a/net/quic/chromium/quic_http_stream.h b/net/quic/chromium/quic_http_stream.h
index d57b37976efdc9480610298bda0bdfb9e83abe2c..a57d41d93b9b299da68cb34c6975380c718b4820 100644
--- a/net/quic/chromium/quic_http_stream.h
+++ b/net/quic/chromium/quic_http_stream.h
@@ -15,6 +15,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "net/base/io_buffer.h"
+#include "net/base/load_timing_info.h"
#include "net/http/http_stream.h"
#include "net/quic/chromium/quic_chromium_client_session.h"
#include "net/quic/chromium/quic_chromium_client_stream.h"
@@ -181,6 +182,10 @@ class NET_EXPORT_PRIVATE QuicHttpStream
int64_t closed_stream_received_bytes_;
// Number of bytes sent when the stream was closed.
int64_t closed_stream_sent_bytes_;
+ // True if the stream is the first stream negotiated on the session. Set when
+ // the stream was closed. If |stream_| is failed to be created, this takes on
+ // the default value of false.
+ bool closed_is_first_stream_;
// The caller's callback to be used for asynchronous operations.
CompletionCallback callback_;
@@ -214,6 +219,9 @@ class NET_EXPORT_PRIVATE QuicHttpStream
// Set to true when DoLoop() is being executed, false otherwise.
bool in_loop_;
+ // Session connect timing info.
+ LoadTimingInfo::ConnectTiming connect_timing_;
+
base::WeakPtrFactory<QuicHttpStream> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(QuicHttpStream);
« no previous file with comments | « net/quic/chromium/quic_chromium_client_stream.cc ('k') | net/quic/chromium/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698