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

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

Issue 1316863007: Change GetTotalReceivedBytes() from int64 to int64_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master 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 | « net/http/proxy_connect_redirect_http_stream.cc ('k') | 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 int ReadResponseHeaders(const CompletionCallback& callback) override; 46 int ReadResponseHeaders(const CompletionCallback& callback) override;
47 int ReadResponseBody(IOBuffer* buf, 47 int ReadResponseBody(IOBuffer* buf,
48 int buf_len, 48 int buf_len,
49 const CompletionCallback& callback) override; 49 const CompletionCallback& callback) override;
50 void Close(bool not_reusable) override; 50 void Close(bool not_reusable) override;
51 HttpStream* RenewStreamForAuth() override; 51 HttpStream* RenewStreamForAuth() override;
52 bool IsResponseBodyComplete() const override; 52 bool IsResponseBodyComplete() const override;
53 bool IsConnectionReused() const override; 53 bool IsConnectionReused() const override;
54 void SetConnectionReused() override; 54 void SetConnectionReused() override;
55 bool CanReuseConnection() const override; 55 bool CanReuseConnection() const override;
56 int64 GetTotalReceivedBytes() const override; 56 int64_t GetTotalReceivedBytes() const override;
57 int64_t GetTotalSentBytes() const override; 57 int64_t GetTotalSentBytes() const override;
58 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 58 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
59 void GetSSLInfo(SSLInfo* ssl_info) override; 59 void GetSSLInfo(SSLInfo* ssl_info) override;
60 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 60 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
61 void Drain(HttpNetworkSession* session) override; 61 void Drain(HttpNetworkSession* session) override;
62 void SetPriority(RequestPriority priority) override; 62 void SetPriority(RequestPriority priority) override;
63 63
64 // QuicReliableClientStream::Delegate implementation 64 // QuicReliableClientStream::Delegate implementation
65 void OnHeadersAvailable(const SpdyHeaderBlock& headers) override; 65 void OnHeadersAvailable(const SpdyHeaderBlock& headers) override;
66 void OnDataAvailable() override; 66 void OnDataAvailable() override;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Serialized request headers. 139 // Serialized request headers.
140 SpdyHeaderBlock request_headers_; 140 SpdyHeaderBlock request_headers_;
141 141
142 bool response_headers_received_; 142 bool response_headers_received_;
143 143
144 // Serialized HTTP request. 144 // Serialized HTTP request.
145 std::string request_; 145 std::string request_;
146 146
147 // Number of bytes received when the stream was closed. 147 // Number of bytes received when the stream was closed.
148 int64 closed_stream_received_bytes_; 148 int64_t closed_stream_received_bytes_;
149 // Number of bytes sent when the stream was closed. 149 // Number of bytes sent when the stream was closed.
150 int64_t closed_stream_sent_bytes_; 150 int64_t closed_stream_sent_bytes_;
151 151
152 // The caller's callback to be used for asynchronous operations. 152 // The caller's callback to be used for asynchronous operations.
153 CompletionCallback callback_; 153 CompletionCallback callback_;
154 154
155 // Caller provided buffer for the ReadResponseBody() response. 155 // Caller provided buffer for the ReadResponseBody() response.
156 scoped_refptr<IOBuffer> user_buffer_; 156 scoped_refptr<IOBuffer> user_buffer_;
157 int user_buffer_len_; 157 int user_buffer_len_;
158 158
159 // Temporary buffer used to read the request body from UploadDataStream. 159 // Temporary buffer used to read the request body from UploadDataStream.
160 scoped_refptr<IOBufferWithSize> raw_request_body_buf_; 160 scoped_refptr<IOBufferWithSize> raw_request_body_buf_;
161 // Wraps raw_request_body_buf_ to read the remaining data progressively. 161 // Wraps raw_request_body_buf_ to read the remaining data progressively.
162 scoped_refptr<DrainableIOBuffer> request_body_buf_; 162 scoped_refptr<DrainableIOBuffer> request_body_buf_;
163 163
164 BoundNetLog stream_net_log_; 164 BoundNetLog stream_net_log_;
165 165
166 base::WeakPtrFactory<QuicHttpStream> weak_factory_; 166 base::WeakPtrFactory<QuicHttpStream> weak_factory_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); 168 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream);
169 }; 169 };
170 170
171 } // namespace net 171 } // namespace net
172 172
173 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ 173 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « net/http/proxy_connect_redirect_http_stream.cc ('k') | net/quic/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698