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

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

Issue 67019: URLRequest::Interceptor enhancements... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « net/url_request/url_request.cc ('k') | 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Some work performed by NotifyDone must be completed on a separate task 221 // Some work performed by NotifyDone must be completed on a separate task
222 // so as to avoid re-entering the delegate. This method exists to perform 222 // so as to avoid re-entering the delegate. This method exists to perform
223 // that work. 223 // that work.
224 void CompleteNotifyDone(); 224 void CompleteNotifyDone();
225 225
226 // Used as an asynchronous callback for Kill to notify the URLRequest that 226 // Used as an asynchronous callback for Kill to notify the URLRequest that
227 // we were canceled. 227 // we were canceled.
228 void NotifyCanceled(); 228 void NotifyCanceled();
229 229
230 // Notifies the job the request should be restarted.
231 // Should only be called if the job has not started a resposne.
232 void NotifyRestartRequired();
233
230 // Called to get more data from the request response. Returns true if there 234 // Called to get more data from the request response. Returns true if there
231 // is data immediately available to read. Return false otherwise. 235 // is data immediately available to read. Return false otherwise.
232 // Internally this function may initiate I/O operations to get more data. 236 // Internally this function may initiate I/O operations to get more data.
233 virtual bool GetMoreData() { return false; } 237 virtual bool GetMoreData() { return false; }
234 238
235 // Called to read raw (pre-filtered) data from this Job. 239 // Called to read raw (pre-filtered) data from this Job.
236 // If returning true, data was read from the job. buf will contain 240 // If returning true, data was read from the job. buf will contain
237 // the data, and bytes_read will receive the number of bytes read. 241 // the data, and bytes_read will receive the number of bytes read.
238 // If returning true, and bytes_read is returned as 0, there is no 242 // If returning true, and bytes_read is returned as 0, there is no
239 // additional data to be read. 243 // additional data to be read.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 326
323 // Total number of bytes read from network (or cache) and and typically handed 327 // Total number of bytes read from network (or cache) and and typically handed
324 // to filter to process. Used to histogram compression ratios, and error 328 // to filter to process. Used to histogram compression ratios, and error
325 // recovery scenarios in filters. 329 // recovery scenarios in filters.
326 int64 filter_input_byte_count_; 330 int64 filter_input_byte_count_;
327 331
328 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 332 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
329 }; 333 };
330 334
331 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 335 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698