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

Unified Diff: content/browser/fileapi/browser_file_system_helper.h

Issue 12595005: Parsing filesystem url before giving it to media player (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding dir check for returned file path Created 7 years, 9 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: content/browser/fileapi/browser_file_system_helper.h
diff --git a/content/browser/fileapi/browser_file_system_helper.h b/content/browser/fileapi/browser_file_system_helper.h
index fe2fcfebea391503703eb9d8a5addd6a528468b0..091a1f287fdfd7712c01ea3ad72724f350729db6 100644
--- a/content/browser/fileapi/browser_file_system_helper.h
+++ b/content/browser/fileapi/browser_file_system_helper.h
@@ -11,6 +11,8 @@
namespace fileapi {
class ExternalMountPoints;
+class FileSystemContext;
+class FileSystemURL;
}
namespace quota {
@@ -29,6 +31,20 @@ CreateFileSystemContext(
quota::SpecialStoragePolicy* special_storage_policy,
quota::QuotaManagerProxy* quota_manager_proxy);
+// Check whether a process has permission to access the file system URL.
+CONTENT_EXPORT bool CheckFileSystemPermissionsForProcess(
+ fileapi::FileSystemContext* context,
+ int process_id,
+ const fileapi::FileSystemURL& url,
+ int permissions,
+ base::PlatformFileError* error);
+
+// Get the platform path from a file system URL. This needs to be called
+// on the FILE thread.
+CONTENT_EXPORT void SyncGetPlatformPath(fileapi::FileSystemContext* context,
+ int process_id,
+ const GURL& path,
+ base::FilePath* platform_path);
} // namespace content
#endif // CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698