Index: chrome/browser/chromeos/drive/drive_file_stream_reader.h |
diff --git a/chrome/browser/chromeos/drive/drive_file_stream_reader.h b/chrome/browser/chromeos/drive/drive_file_stream_reader.h |
index b6a2b1d3bf9841cb9fa6ef68002578e4ffa63b2f..28eac15d9860edd0764dd68db74d70be3e8e2fd0 100644 |
--- a/chrome/browser/chromeos/drive/drive_file_stream_reader.h |
+++ b/chrome/browser/chromeos/drive/drive_file_stream_reader.h |
@@ -88,9 +88,11 @@ class NetworkReaderProxy : public ReaderProxy { |
public: |
// If the instance is deleted during the download process, it is necessary |
// to cancel the job. |job_canceller| should be the callback to run the |
- // cancelling. |
+ // cancelling. |full_content_length| is necessary for determining whether the |
+ // deletion is done in the middle of download process. |
NetworkReaderProxy( |
- int64 offset, int64 content_length, const base::Closure& job_canceller); |
+ int64 offset, int64 content_length, int64 full_content_length, |
+ const base::Closure& job_canceller); |
virtual ~NetworkReaderProxy(); |
// ReaderProxy overrides. |
@@ -110,6 +112,10 @@ class NetworkReaderProxy : public ReaderProxy { |
// received from the server). |
int64 remaining_content_length_; |
+ // Flag to remember whether this read request is for reading till the end of |
+ // the file. |
+ const bool is_full_download_; |
+ |
int error_code_; |
// To support pending Read(), it is necessary to keep its arguments. |