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

Unified Diff: chrome/browser/chromeos/fileapi/file_access_permissions.h

Issue 148233008: Grant Files.app access for mount points added after its launch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: chrome/browser/chromeos/fileapi/file_access_permissions.h
diff --git a/chrome/browser/chromeos/fileapi/file_access_permissions.h b/chrome/browser/chromeos/fileapi/file_access_permissions.h
index 165ac27c4c88b2f0d9250808ba2197d2cba10e5b..3377e6694c41b38040bbc5a2d4e928a17fe1eecf 100644
--- a/chrome/browser/chromeos/fileapi/file_access_permissions.h
+++ b/chrome/browser/chromeos/fileapi/file_access_permissions.h
@@ -12,15 +12,18 @@
#include "base/basictypes.h"
#include "base/files/file_path.h"
#include "base/synchronization/lock.h"
-#include "webkit/browser/webkit_storage_browser_export.h"
namespace chromeos {
+// In a thread safe manner maintains the set of paths allowed to access for
+// each extension.
class FileAccessPermissions {
public:
FileAccessPermissions();
virtual ~FileAccessPermissions();
+ // Grants |extension_id| full access to all paths.
+ void GrantFullAccessPermission(const std::string& extension_id);
// Grants |extension_id| access to |path|.
void GrantAccessPermission(const std::string& extension_id,
const base::FilePath& path);

Powered by Google App Engine
This is Rietveld 408576698