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

Side by Side Diff: content/browser/fileapi/browser_file_system_helper.h

Issue 23760004: ChildProcessSecurityPolicy: Port FileAPIMessageFilter to use new checks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_ 5 #ifndef CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_
6 #define CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_ 6 #define CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "webkit/browser/fileapi/file_system_context.h" 10 #include "webkit/browser/fileapi/file_system_context.h"
(...skipping 14 matching lines...) Expand all
25 CreateFileSystemContext( 25 CreateFileSystemContext(
26 BrowserContext* browser_context, 26 BrowserContext* browser_context,
27 const base::FilePath& profile_path, 27 const base::FilePath& profile_path,
28 bool is_incognito, 28 bool is_incognito,
29 quota::QuotaManagerProxy* quota_manager_proxy); 29 quota::QuotaManagerProxy* quota_manager_proxy);
30 30
31 // Verifies that |url| is valid and has a registered backend in |context|. 31 // Verifies that |url| is valid and has a registered backend in |context|.
32 CONTENT_EXPORT bool FileSystemURLIsValid(fileapi::FileSystemContext* context, 32 CONTENT_EXPORT bool FileSystemURLIsValid(fileapi::FileSystemContext* context,
33 const fileapi::FileSystemURL& url); 33 const fileapi::FileSystemURL& url);
34 34
35 // Check whether a process has permission to access the file system URL.
36 CONTENT_EXPORT bool CheckFileSystemPermissionsForProcess(
37 fileapi::FileSystemContext* context,
38 int process_id,
39 const fileapi::FileSystemURL& url,
40 int permissions,
41 base::PlatformFileError* error);
42
43 // Get the platform path from a file system URL. This needs to be called 35 // Get the platform path from a file system URL. This needs to be called
44 // on the FILE thread. 36 // on the FILE thread.
45 CONTENT_EXPORT void SyncGetPlatformPath(fileapi::FileSystemContext* context, 37 CONTENT_EXPORT void SyncGetPlatformPath(fileapi::FileSystemContext* context,
46 int process_id, 38 int process_id,
47 const GURL& path, 39 const GURL& path,
48 base::FilePath* platform_path); 40 base::FilePath* platform_path);
49 } // namespace content 41 } // namespace content
50 42
51 #endif // CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_ 43 #endif // CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | content/browser/fileapi/browser_file_system_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698