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

Side by Side Diff: net/quic/quic_http_stream.h

Issue 1327533002: Implemented QuicHttpStream::GetTotalSentBytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@http_stream_sent_bytes
Patch Set: Rebased Created 5 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/quic/quic_http_stream.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_QUIC_QUIC_HTTP_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_HTTP_STREAM_H_
6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Serialized request headers. 162 // Serialized request headers.
163 SpdyHeaderBlock request_headers_; 163 SpdyHeaderBlock request_headers_;
164 164
165 bool response_headers_received_; 165 bool response_headers_received_;
166 166
167 // Serialized HTTP request. 167 // Serialized HTTP request.
168 std::string request_; 168 std::string request_;
169 169
170 // Number of bytes received when the stream was closed. 170 // Number of bytes received when the stream was closed.
171 int64 closed_stream_received_bytes_; 171 int64 closed_stream_received_bytes_;
172 // Number of bytes sent when the stream was closed.
173 int64_t closed_stream_sent_bytes_;
172 174
173 // The caller's callback to be used for asynchronous operations. 175 // The caller's callback to be used for asynchronous operations.
174 CompletionCallback callback_; 176 CompletionCallback callback_;
175 177
176 // Caller provided buffer for the ReadResponseBody() response. 178 // Caller provided buffer for the ReadResponseBody() response.
177 scoped_refptr<IOBuffer> user_buffer_; 179 scoped_refptr<IOBuffer> user_buffer_;
178 int user_buffer_len_; 180 int user_buffer_len_;
179 181
180 // Temporary buffer used to read the request body from UploadDataStream. 182 // Temporary buffer used to read the request body from UploadDataStream.
181 scoped_refptr<IOBufferWithSize> raw_request_body_buf_; 183 scoped_refptr<IOBufferWithSize> raw_request_body_buf_;
182 // Wraps raw_request_body_buf_ to read the remaining data progressively. 184 // Wraps raw_request_body_buf_ to read the remaining data progressively.
183 scoped_refptr<DrainableIOBuffer> request_body_buf_; 185 scoped_refptr<DrainableIOBuffer> request_body_buf_;
184 186
185 BoundNetLog stream_net_log_; 187 BoundNetLog stream_net_log_;
186 188
187 #ifdef TEMP_INSTRUMENTATION_468529 189 #ifdef TEMP_INSTRUMENTATION_468529
188 // TODO(rtenneti): Temporary while investigating crbug.com/468529 190 // TODO(rtenneti): Temporary while investigating crbug.com/468529
189 Liveness liveness_ = ALIVE; 191 Liveness liveness_ = ALIVE;
190 base::debug::StackTrace stack_trace_; 192 base::debug::StackTrace stack_trace_;
191 #endif 193 #endif
192 194
193 base::WeakPtrFactory<QuicHttpStream> weak_factory_; 195 base::WeakPtrFactory<QuicHttpStream> weak_factory_;
194 196
195 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); 197 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream);
196 }; 198 };
197 199
198 } // namespace net 200 } // namespace net
199 201
200 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ 202 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698