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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h

Issue 2914433002: arc: Use the MIME type returned by the container to handle content URLs (Closed)
Patch Set: Comment drop. Created 3 years, 6 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: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h
index e378270bbba50a7997c8b411010f76d111a37a6b..6f40f979bec51ea6a1b8382f80563da3b31adaef 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h
+++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h
@@ -55,6 +55,7 @@ class ArcFileSystemOperationRunner
public InstanceHolder<mojom::FileSystemInstance>::Observer {
public:
using GetFileSizeCallback = mojom::FileSystemInstance::GetFileSizeCallback;
+ using GetMimeTypeCallback = mojom::FileSystemInstance::GetMimeTypeCallback;
using OpenFileToReadCallback =
mojom::FileSystemInstance::OpenFileToReadCallback;
using GetDocumentCallback = mojom::FileSystemInstance::GetDocumentCallback;
@@ -99,6 +100,7 @@ class ArcFileSystemOperationRunner
// Runs file system operations. See file_system.mojom for documentation.
void GetFileSize(const GURL& url, const GetFileSizeCallback& callback);
+ void GetMimeType(const GURL& url, const GetMimeTypeCallback& callback);
void OpenFileToRead(const GURL& url, const OpenFileToReadCallback& callback);
void GetDocument(const std::string& authority,
const std::string& document_id,

Powered by Google App Engine
This is Rietveld 408576698