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

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

Issue 169014: Remove URLRequest::Restart() because it is only referenced by unit tests (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 4 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-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 // Some work performed by NotifyDone must be completed on a separate task 234 // Some work performed by NotifyDone must be completed on a separate task
235 // so as to avoid re-entering the delegate. This method exists to perform 235 // so as to avoid re-entering the delegate. This method exists to perform
236 // that work. 236 // that work.
237 void CompleteNotifyDone(); 237 void CompleteNotifyDone();
238 238
239 // Used as an asynchronous callback for Kill to notify the URLRequest that 239 // Used as an asynchronous callback for Kill to notify the URLRequest that
240 // we were canceled. 240 // we were canceled.
241 void NotifyCanceled(); 241 void NotifyCanceled();
242 242
243 // Notifies the job the request should be restarted.
244 // Should only be called if the job has not started a resposne.
245 void NotifyRestartRequired();
246
247 // Called to get more data from the request response. Returns true if there 243 // Called to get more data from the request response. Returns true if there
248 // is data immediately available to read. Return false otherwise. 244 // is data immediately available to read. Return false otherwise.
249 // Internally this function may initiate I/O operations to get more data. 245 // Internally this function may initiate I/O operations to get more data.
250 virtual bool GetMoreData() { return false; } 246 virtual bool GetMoreData() { return false; }
251 247
252 // Called to read raw (pre-filtered) data from this Job. 248 // Called to read raw (pre-filtered) data from this Job.
253 // If returning true, data was read from the job. buf will contain 249 // If returning true, data was read from the job. buf will contain
254 // the data, and bytes_read will receive the number of bytes read. 250 // the data, and bytes_read will receive the number of bytes read.
255 // If returning true, and bytes_read is returned as 0, there is no 251 // If returning true, and bytes_read is returned as 0, there is no
256 // additional data to be read. 252 // additional data to be read.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 base::Time final_packet_time_; 388 base::Time final_packet_time_;
393 389
394 // The count of the number of packets, some of which may not have been timed. 390 // The count of the number of packets, some of which may not have been timed.
395 // We're ignoring overflow, as 1430 x 2^31 is a LOT of bytes. 391 // We're ignoring overflow, as 1430 x 2^31 is a LOT of bytes.
396 int observed_packet_count_; 392 int observed_packet_count_;
397 393
398 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 394 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
399 }; 395 };
400 396
401 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 397 #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