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

Unified Diff: chrome/browser/drive/drive_api_util.h

Issue 955313003: Files.app: Fix a bug in content hash computation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
Patch Set: Created 5 years, 10 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/drive/drive_api_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_api_util.h
diff --git a/chrome/browser/drive/drive_api_util.h b/chrome/browser/drive/drive_api_util.h
index def11993edcc886c25819fae855615be04c9304d..3dbdfb714411a44f489e25f2786ff0851a0fc54a 100644
--- a/chrome/browser/drive/drive_api_util.h
+++ b/chrome/browser/drive/drive_api_util.h
@@ -92,13 +92,12 @@ class FileStreamMd5Digester {
private:
// Kicks off a read of the next chunk from the stream.
- void ReadNextChunk();
+ void ReadNextChunk(const ResultCallback& callback);
// Handles the incoming chunk of data from a stream read.
- void OnChunkRead(int result);
+ void OnChunkRead(const ResultCallback& callback, int bytes_read);
// Maximum chunk size for read operations.
scoped_ptr<storage::FileStreamReader> reader_;
- ResultCallback callback_;
scoped_refptr<net::IOBuffer> buffer_;
base::MD5Context md5_context_;
« no previous file with comments | « no previous file | chrome/browser/drive/drive_api_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698