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

Side by Side Diff: content/public/browser/child_process_security_policy.h

Issue 10692104: Add isWritableFileEntry to the fileSystem API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added presubmit fix Created 8 years, 5 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
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 const std::string& filesystem_id) = 0; 93 const std::string& filesystem_id) = 0;
94 94
95 // Grants the child process the capability to access URLs of the provided 95 // Grants the child process the capability to access URLs of the provided
96 // scheme. 96 // scheme.
97 virtual void GrantScheme(int child_id, const std::string& scheme) = 0; 97 virtual void GrantScheme(int child_id, const std::string& scheme) = 0;
98 98
99 // Returns true iff read access has been granted to the file system with 99 // Returns true iff read access has been granted to the file system with
100 // |filesystem_id|. 100 // |filesystem_id|.
101 virtual bool CanReadFileSystem(int child_id, 101 virtual bool CanReadFileSystem(int child_id,
102 const std::string& filesystem_id) = 0; 102 const std::string& filesystem_id) = 0;
103
104 // Returns true iff read and write access has been granted to the filesystem
105 // with |filesystem_id|.
106 virtual bool CanReadWriteFileSystem(int child_id,
107 const std::string& filesystem_id) = 0;
103 }; 108 };
104 109
105 }; // namespace content 110 }; // namespace content
106 111
107 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 112 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698