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

Side by Side Diff: net/spdy/bidirectional_stream_spdy_impl.h

Issue 2356463002: Implements BidirectionalStreamSpdyImpl::GetLoadTimingInfo (Closed)
Patch Set: Rebased 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/spdy/bidirectional_stream_spdy_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 5 #ifndef NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Whether OnClose has been invoked. 98 // Whether OnClose has been invoked.
99 bool stream_closed_; 99 bool stream_closed_;
100 // Status reported in OnClose. 100 // Status reported in OnClose.
101 int closed_stream_status_; 101 int closed_stream_status_;
102 // After |stream_| has been closed, this keeps track of the total number of 102 // After |stream_| has been closed, this keeps track of the total number of
103 // bytes received over the network for |stream_| while it was open. 103 // bytes received over the network for |stream_| while it was open.
104 int64_t closed_stream_received_bytes_; 104 int64_t closed_stream_received_bytes_;
105 // After |stream_| has been closed, this keeps track of the total number of 105 // After |stream_| has been closed, this keeps track of the total number of
106 // bytes sent over the network for |stream_| while it was open. 106 // bytes sent over the network for |stream_| while it was open.
107 int64_t closed_stream_sent_bytes_; 107 int64_t closed_stream_sent_bytes_;
108 // True if |stream_| has LoadTimingInfo when it is closed.
109 bool closed_has_load_timing_info_;
110 // LoadTimingInfo populated when |stream_| is closed.
111 LoadTimingInfo closed_load_timing_info_;
112
108 // This is the combined buffer of buffers passed in through SendvData. 113 // This is the combined buffer of buffers passed in through SendvData.
109 // Keep a reference here so it is alive until OnDataSent is invoked. 114 // Keep a reference here so it is alive until OnDataSent is invoked.
110 scoped_refptr<IOBuffer> pending_combined_buffer_; 115 scoped_refptr<IOBuffer> pending_combined_buffer_;
111 116
112 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; 117 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_;
113 118
114 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); 119 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl);
115 }; 120 };
116 121
117 } // namespace net 122 } // namespace net
118 123
119 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 124 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/bidirectional_stream_spdy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698