| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |