Chromium Code Reviews

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: 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.
Jump to:
View side-by-side diff with in-line comments
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