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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.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_content_file_system_url_util.h
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h
index 1a49c782e9debbbf5bc65458e09f84f32d0383d6..a6daddc5e9ca3eacaf11212611c3dec634f420c4 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h
+++ b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h
@@ -40,6 +40,12 @@ GURL ExternalFileUrlToArcUrl(const GURL& external_file_url);
// Converts a FileSystemURL to a URL which can be used within the ARC container.
GURL FileSystemUrlToArcUrl(const storage::FileSystemURL& url);
+// Converts a path which was returned by FileSystemURL::path() (not to be
+// confused with virtual_path()) to a URL which can be used within the ARC
+// container. If the given path is not under the ARC content file system mount
+// point, returns an empty GURL.
+GURL PathToArcUrl(const base::FilePath& path);
+
} // namespace arc
#endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698