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

Unified Diff: chrome/browser/chromeos/drive/drive_url_request_job.h

Issue 13078005: Remove retrial of reading from a cached file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_url_request_job.h
diff --git a/chrome/browser/chromeos/drive/drive_url_request_job.h b/chrome/browser/chromeos/drive/drive_url_request_job.h
index 83b2a5977da67ddcbc7f262b640f9c3c48173470..7862e77953495b54cef4de72b0ee43475437c28d 100644
--- a/chrome/browser/chromeos/drive/drive_url_request_job.h
+++ b/chrome/browser/chromeos/drive/drive_url_request_job.h
@@ -95,10 +95,10 @@ class DriveURLRequestJob : public net::URLRequestJob {
// stream in a streaming fashion.
bool ContinueReadFromFile(int* bytes_read);
void ReadFromFile();
- void ReadFileStream(int bytes_to_read);
+ void ReadFileStream();
// Helper callback for handling async responses from FileStream::Open().
- void OnFileOpen(int bytes_to_read, int open_result);
+ void OnFileOpen(int open_result);
// Helper callback for handling async responses from FileStream::Read().
void OnReadFileStream(int bytes_read);
@@ -127,10 +127,10 @@ class DriveURLRequestJob : public net::URLRequestJob {
int64 initial_file_size_;
int64 remaining_bytes_;
scoped_ptr<net::FileStream> stream_;
- scoped_refptr<net::IOBuffer> read_buf_;
- base::StringPiece read_buf_remaining_;
scoped_ptr<net::HttpResponseInfo> response_info_;
bool streaming_download_;
+ scoped_refptr<net::IOBuffer> read_buf_;
+ base::StringPiece read_buf_remaining_;
std::string download_buf_;
base::StringPiece download_buf_remaining_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698