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

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

Issue 46303005: Fix chrome upload with content uri (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/file_stream_reader.h
diff --git a/webkit/browser/blob/file_stream_reader.h b/webkit/browser/blob/file_stream_reader.h
index d60dfdbd91cfcf871d7cd49f23830576e2ff4a0b..c8ec0a2e1a96d5f1738e13e337c130c786c66644 100644
--- a/webkit/browser/blob/file_stream_reader.h
+++ b/webkit/browser/blob/file_stream_reader.h
@@ -25,6 +25,10 @@ class FileSystemContext;
class FileSystemURL;
}
+#if defined(OS_ANDROID)
+class GURL;
+#endif
+
namespace webkit_blob {
// A generic interface for reading a file-like object.
@@ -56,6 +60,14 @@ class FileStreamReader {
int64 initial_offset,
const base::Time& expected_modification_time);
+#if defined(OS_ANDROID)
+ // Creates a new reader for a content URL |url| form |initial_offset|.
+ WEBKIT_STORAGE_BROWSER_EXPORT static FileStreamReader*
+ CreateForContentUrl(base::TaskRunner* task_runner,
+ const GURL& content_url,
+ int64 initial_offset);
+#endif
+
// It is valid to delete the reader at any time. If the stream is deleted
// while it has a pending read, its callback will not be called.
virtual ~FileStreamReader() {}

Powered by Google App Engine
This is Rietveld 408576698