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

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

Issue 11364057: Set blocked_on_delegate_ when a URLRequest is blocked during redirects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix comment Created 8 years, 1 month 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_http_job.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) 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_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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 void CompleteNotifyDone(); 234 void CompleteNotifyDone();
235 235
236 // Used as an asynchronous callback for Kill to notify the URLRequest 236 // Used as an asynchronous callback for Kill to notify the URLRequest
237 // that we were canceled. 237 // that we were canceled.
238 void NotifyCanceled(); 238 void NotifyCanceled();
239 239
240 // Notifies the job the request should be restarted. 240 // Notifies the job the request should be restarted.
241 // Should only be called if the job has not started a resposne. 241 // Should only be called if the job has not started a resposne.
242 void NotifyRestartRequired(); 242 void NotifyRestartRequired();
243 243
244 // Called when the delegate blocks or unblocks this request when intercepting 244 // Called when the network delegate blocks or unblocks this request when
245 // certain requests. 245 // intercepting certain requests.
246 void SetBlockedOnDelegate(); 246 void SetBlockedOnDelegate();
247 void SetUnblockedOnDelegate(); 247 void SetUnblockedOnDelegate();
248 248
249 // Called to read raw (pre-filtered) data from this Job. 249 // Called to read raw (pre-filtered) data from this Job.
250 // If returning true, data was read from the job. buf will contain 250 // If returning true, data was read from the job. buf will contain
251 // the data, and bytes_read will receive the number of bytes read. 251 // the data, and bytes_read will receive the number of bytes read.
252 // If returning true, and bytes_read is returned as 0, there is no 252 // If returning true, and bytes_read is returned as 0, there is no
253 // additional data to be read. 253 // additional data to be read.
254 // If returning false, an error occurred or an async IO is now pending. 254 // If returning false, an error occurred or an async IO is now pending.
255 // If async IO is pending, the status of the request will be 255 // If async IO is pending, the status of the request will be
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 NetworkDelegate* network_delegate_; 379 NetworkDelegate* network_delegate_;
380 380
381 base::WeakPtrFactory<URLRequestJob> weak_factory_; 381 base::WeakPtrFactory<URLRequestJob> weak_factory_;
382 382
383 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 383 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
384 }; 384 };
385 385
386 } // namespace net 386 } // namespace net
387 387
388 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 388 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698