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

Side by Side Diff: net/url_request/url_request_job.h

Issue 27073: Make sure filter buffer is flushed after it fills its output quota... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/url_request/url_request_job.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_URL_REQUEST_URL_REQUEST_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // out. 278 // out.
279 bool FilterHasData(); 279 bool FilterHasData();
280 280
281 // Indicates that the job is done producing data, either it has completed 281 // Indicates that the job is done producing data, either it has completed
282 // all the data or an error has been encountered. Set exclusively by 282 // all the data or an error has been encountered. Set exclusively by
283 // NotifyDone so that it is kept in sync with the request. 283 // NotifyDone so that it is kept in sync with the request.
284 bool done_; 284 bool done_;
285 285
286 // The data stream filter which is enabled on demand. 286 // The data stream filter which is enabled on demand.
287 scoped_ptr<Filter> filter_; 287 scoped_ptr<Filter> filter_;
288
289 // If the filter filled its output buffer, then there is a change that it
290 // still has internal data to emit, and this flag is set.
291 bool filter_needs_more_output_space_;
292
288 // When we filter data, we receive data into the filter buffers. After 293 // When we filter data, we receive data into the filter buffers. After
289 // processing the filtered data, we return the data in the caller's buffer. 294 // processing the filtered data, we return the data in the caller's buffer.
290 // While the async IO is in progress, we save the user buffer here, and 295 // While the async IO is in progress, we save the user buffer here, and
291 // when the IO completes, we fill this in. 296 // when the IO completes, we fill this in.
292 net::IOBuffer *read_buffer_; 297 net::IOBuffer *read_buffer_;
293 int read_buffer_len_; 298 int read_buffer_len_;
294 299
295 // Used by HandleResponseIfNecessary to track whether we've sent the 300 // Used by HandleResponseIfNecessary to track whether we've sent the
296 // OnResponseStarted callback and potentially redirect callbacks as well. 301 // OnResponseStarted callback and potentially redirect callbacks as well.
297 bool has_handled_response_; 302 bool has_handled_response_;
298 303
299 // Expected content size 304 // Expected content size
300 int64 expected_content_size_; 305 int64 expected_content_size_;
301 306
302 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 307 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
303 }; 308 };
304 309
305 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 310 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698