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

Unified Diff: content/public/browser/child_process_security_policy.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/public/browser/browser_ppapi_host.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/child_process_security_policy.h
diff --git a/content/public/browser/child_process_security_policy.h b/content/public/browser/child_process_security_policy.h
index 189effabcf49389a46af99c0993e2b40a49b973e..b56f7f87a71696fcdaef4ea2915d26465c050278 100644
--- a/content/public/browser/child_process_security_policy.h
+++ b/content/public/browser/child_process_security_policy.h
@@ -11,7 +11,9 @@
#include "base/basictypes.h"
#include "content/common/content_export.h"
+namespace base {
class FilePath;
+}
namespace content {
@@ -49,18 +51,18 @@ class ChildProcessSecurityPolicy {
// Grants certain permissions to a file. |permissions| must be a bit-set of
// base::PlatformFileFlags.
virtual void GrantPermissionsForFile(int child_id,
- const FilePath& file,
+ const base::FilePath& file,
int permissions) = 0;
// Before servicing a child process's request to upload a file to the web, the
// browser should call this method to determine whether the process has the
// capability to upload the requested file.
- virtual bool CanReadFile(int child_id, const FilePath& file) = 0;
+ virtual bool CanReadFile(int child_id, const base::FilePath& file) = 0;
// Whenever the user picks a file from a <input type="file"> element, the
// browser should call this function to grant the child process the capability
// to upload the file to the web.
- virtual void GrantReadFile(int child_id, const FilePath& file) = 0;
+ virtual void GrantReadFile(int child_id, const base::FilePath& file) = 0;
// Grants read access permission to the given isolated file system
// identified by |filesystem_id|. An isolated file system can be
« no previous file with comments | « content/public/browser/browser_ppapi_host.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698