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

Unified Diff: webkit/browser/blob/local_file_stream_reader.h

Issue 46303005: Fix chrome upload with content uri (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify the change using FILE enum instead of adding a new enum Created 7 years, 2 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
Index: webkit/browser/blob/local_file_stream_reader.h
diff --git a/webkit/browser/blob/local_file_stream_reader.h b/webkit/browser/blob/local_file_stream_reader.h
index 18a5424514a3bbf9632814679c8aea11bfdf1a83..96e09db923e9d327e136e06ef2aceefa36650144 100644
--- a/webkit/browser/blob/local_file_stream_reader.h
+++ b/webkit/browser/blob/local_file_stream_reader.h
@@ -62,6 +62,13 @@ class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileStreamReader
void DidGetFileInfoForGetLength(const net::Int64CompletionCallback& callback,
base::PlatformFileError error,
const base::PlatformFileInfo& file_info);
+#if defined(OS_ANDROID)
+ // Callback when the length of the content url is retrieved. If the content
+ // url cannot be found, |result| < 0. Otherwise, |result| is be the actual
+ // file size.
+ void DidGetContentUrlLength(const net::Int64CompletionCallback& callback,
+ int64 result);
+#endif
scoped_refptr<base::TaskRunner> task_runner_;
scoped_ptr<net::FileStream> stream_impl_;

Powered by Google App Engine
This is Rietveld 408576698