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

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

Issue 2661003003: mediaview: Recognize more MIME types. (Closed)
Patch Set: Created 3 years, 11 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_documents_provider_util.h
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h b/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h
index 1ba3583e6a37d3d1238ebbf65f38d0feeead89ba..4f130ddef2222aab1a276bddd129999b23367d7a 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h
+++ b/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h
@@ -8,6 +8,7 @@
#define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_UTIL_H_
#include <string>
+#include <vector>
#include "base/files/file_path.h"
@@ -61,6 +62,14 @@ bool ParseDocumentsProviderUrl(const storage::FileSystemURL& url,
GURL BuildDocumentUrl(const std::string& authority,
const std::string& document_id);
+// Similar to net::GetExtensionsForMimeType(), but this covers more MIME types
+// used in Android.
+// Returns an empty vector if the MIME type is not known.
+// If the returned vector is not empty, the first extension is the preferred
+// extension.
+std::vector<base::FilePath::StringType> GetExtensionsForArcMimeType(
+ const std::string& mime_type);
+
} // namespace arc
#endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698