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

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: 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') | net/quic/quic_http_stream.cc » ('J')
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Serialized request headers. 164 // Serialized request headers.
165 SpdyHeaderBlock request_headers_; 165 SpdyHeaderBlock request_headers_;
166 166
167 bool response_headers_received_; 167 bool response_headers_received_;
168 168
169 // Serialized HTTP request. 169 // Serialized HTTP request.
170 std::string request_; 170 std::string request_;
171 171
172 // Number of bytes received when the stream was closed. 172 // Number of bytes received when the stream was closed.
173 int64 closed_stream_received_bytes_; 173 int64 closed_stream_received_bytes_;
174 // Number of bytes sent when the stream was closed.
175 int64_t closed_stream_sent_bytes_;
174 176
175 // The caller's callback to be used for asynchronous operations. 177 // The caller's callback to be used for asynchronous operations.
176 CompletionCallback callback_; 178 CompletionCallback callback_;
177 179
178 // Caller provided buffer for the ReadResponseBody() response. 180 // Caller provided buffer for the ReadResponseBody() response.
179 scoped_refptr<IOBuffer> user_buffer_; 181 scoped_refptr<IOBuffer> user_buffer_;
180 int user_buffer_len_; 182 int user_buffer_len_;
181 183
182 // Temporary buffer used to read the request body from UploadDataStream. 184 // Temporary buffer used to read the request body from UploadDataStream.
183 scoped_refptr<IOBufferWithSize> raw_request_body_buf_; 185 scoped_refptr<IOBufferWithSize> raw_request_body_buf_;
184 // Wraps raw_request_body_buf_ to read the remaining data progressively. 186 // Wraps raw_request_body_buf_ to read the remaining data progressively.
185 scoped_refptr<DrainableIOBuffer> request_body_buf_; 187 scoped_refptr<DrainableIOBuffer> request_body_buf_;
186 188
187 BoundNetLog stream_net_log_; 189 BoundNetLog stream_net_log_;
188 190
189 #ifdef TEMP_INSTRUMENTATION_468529 191 #ifdef TEMP_INSTRUMENTATION_468529
190 // TODO(rtenneti): Temporary while investigating crbug.com/468529 192 // TODO(rtenneti): Temporary while investigating crbug.com/468529
191 Liveness liveness_ = ALIVE; 193 Liveness liveness_ = ALIVE;
192 base::debug::StackTrace stack_trace_; 194 base::debug::StackTrace stack_trace_;
193 #endif 195 #endif
194 196
195 base::WeakPtrFactory<QuicHttpStream> weak_factory_; 197 base::WeakPtrFactory<QuicHttpStream> weak_factory_;
196 198
197 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); 199 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream);
198 }; 200 };
199 201
200 } // namespace net 202 } // namespace net
201 203
202 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ 204 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_http_stream.cc » ('j') | net/quic/quic_http_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698