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

Unified Diff: content/browser/child_process_security_policy_impl.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
Index: content/browser/child_process_security_policy_impl.h
diff --git a/content/browser/child_process_security_policy_impl.h b/content/browser/child_process_security_policy_impl.h
index a2136b7fee521270fa65c6cc715b9a2ed4565930..6525968c23d29155d548ba6305d2a34e9f740529 100644
--- a/content/browser/child_process_security_policy_impl.h
+++ b/content/browser/child_process_security_policy_impl.h
@@ -17,9 +17,12 @@
#include "content/public/browser/child_process_security_policy.h"
#include "webkit/glue/resource_type.h"
-class FilePath;
class GURL;
+namespace base {
+class FilePath;
+}
+
namespace content {
class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
@@ -37,9 +40,9 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
virtual void RegisterDisabledSchemes(const std::set<std::string>& schemes)
OVERRIDE;
virtual void GrantPermissionsForFile(int child_id,
- const FilePath& file,
+ const base::FilePath& file,
int permissions) OVERRIDE;
- virtual void GrantReadFile(int child_id, const FilePath& file) OVERRIDE;
+ virtual void GrantReadFile(int child_id, const base::FilePath& file) OVERRIDE;
virtual void GrantReadFileSystem(
int child_id,
const std::string& filesystem_id) OVERRIDE;
@@ -50,7 +53,7 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
int child_id,
const std::string& filesystem_id) OVERRIDE;
virtual void GrantScheme(int child_id, const std::string& scheme) OVERRIDE;
- virtual bool CanReadFile(int child_id, const FilePath& file) OVERRIDE;
+ virtual bool CanReadFile(int child_id, const base::FilePath& file) OVERRIDE;
virtual bool CanReadFileSystem(int child_id,
const std::string& filesystem_id) OVERRIDE;
virtual bool CanReadWriteFileSystem(
@@ -95,10 +98,10 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
// Grants the child process permission to enumerate all the files in
// this directory and read those files.
- void GrantReadDirectory(int child_id, const FilePath& directory);
+ void GrantReadDirectory(int child_id, const base::FilePath& directory);
// Revokes all permissions granted to the given file.
- void RevokeAllPermissionsForFile(int child_id, const FilePath& file);
+ void RevokeAllPermissionsForFile(int child_id, const base::FilePath& file);
// Grant the child process the ability to use Web UI Bindings.
void GrantWebUIBindings(int child_id);
@@ -123,12 +126,12 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
// Before servicing a child process's request to enumerate a directory
// the browser should call this method to check for the capability.
- bool CanReadDirectory(int child_id, const FilePath& directory);
+ bool CanReadDirectory(int child_id, const base::FilePath& directory);
// Determines if certain permissions were granted for a file. |permissions|
// must be a bit-set of base::PlatformFileFlags.
bool HasPermissionsForFile(int child_id,
- const FilePath& file,
+ const base::FilePath& file,
int permissions);
// Returns true if the specified child_id has been granted WebUIBindings.
@@ -194,7 +197,7 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
// Determines if certain permissions were granted for a file to given child
// process. |permissions| must be a bit-set of base::PlatformFileFlags.
bool ChildProcessHasPermissionsForFile(int child_id,
- const FilePath& file,
+ const base::FilePath& file,
int permissions);
// You must acquire this lock before reading or writing any members of this
« no previous file with comments | « content/browser/appcache/chrome_appcache_service.h ('k') | content/browser/dom_storage/dom_storage_context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698