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

Unified Diff: content/browser/child_process_security_policy_impl.h

Issue 10332071: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windows tests fixed Created 8 years, 7 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 ee258bbe3578938336e89425b8fa0bf5e936fb19..bef3b7c8cccdfd5c67cf2ada2b800df395635268 100644
--- a/content/browser/child_process_security_policy_impl.h
+++ b/content/browser/child_process_security_policy_impl.h
@@ -39,6 +39,9 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
int permissions) OVERRIDE;
virtual void GrantReadFile(int child_id, const FilePath& file) OVERRIDE;
virtual void GrantScheme(int child_id, const std::string& scheme) OVERRIDE;
+ virtual void GrantAccessFileSystem(int child_id,
+ const std::string& filesystem_id) OVERRIDE;
+ virtual bool CanReadFile(int child_id, const FilePath& file) OVERRIDE;
// Pseudo schemes are treated differently than other schemes because they
// cannot be requested like normal URLs. There is no mechanism for revoking
@@ -77,9 +80,6 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
// Revokes all permissions granted to the given file.
void RevokeAllPermissionsForFile(int child_id, const FilePath& file);
- // Grants access permission to the given filesystem_id.
- void GrantAccessFileSystem(int child_id, const std::string& filesystem_id);
-
// Grant the child process the ability to use Web UI Bindings.
void GrantWebUIBindings(int child_id);
@@ -94,11 +94,6 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
// request the URL.
bool CanRequestURL(int child_id, const GURL& url);
- // 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.
- bool CanReadFile(int child_id, const FilePath& file);
-
// 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);

Powered by Google App Engine
This is Rietveld 408576698