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

Unified Diff: net/base/file_stream_context.h

Issue 46303005: Fix chrome upload with content uri (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 7 years, 1 month 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: net/base/file_stream_context.h
diff --git a/net/base/file_stream_context.h b/net/base/file_stream_context.h
index 3ce8a5b6cdc9cb7decd553e50aa4cb05f66eac69..def7c7f867c049dc8905ba88070664d048a951b4 100644
--- a/net/base/file_stream_context.h
+++ b/net/base/file_stream_context.h
@@ -107,6 +107,13 @@ class FileStream::Context {
const CompletionCallback& callback);
int OpenSync(const base::FilePath& path, int open_flags);
+#if defined(OS_ANDROID)
+ void OpenContentUrlAsync(const base::FilePath& path,
+ int open_flags,
+ const CompletionCallback& callback);
+ int OpenContentUrlSync(const base::FilePath& path, int open_flags);
+#endif
+
void CloseSync();
void CloseAsync(const CompletionCallback& callback);
@@ -146,6 +153,9 @@ class FileStream::Context {
void BeginOpenEvent(const base::FilePath& path);
OpenResult OpenFileImpl(const base::FilePath& path, int open_flags);
+#if defined(OS_ANDROID)
+ OpenResult OpenContentUrlImpl(const base::FilePath& path, int open_flags);
+#endif
void ProcessOpenError(const IOResult& result);
void OnOpenCompleted(const CompletionCallback& callback,

Powered by Google App Engine
This is Rietveld 408576698