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

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

Issue 2324183002: Implement QuicHttpStream::GetLoadTimingInfo (Closed)
Patch Set: fix compile on windows 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
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 79bb187b828d5d33d92fe46fef72521e2e1c80af..c597a0708153eb299c9b83945bce9956bf0d8d66 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"
@@ -177,6 +178,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_;
@@ -210,6 +215,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);

Powered by Google App Engine
This is Rietveld 408576698