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

Unified Diff: webkit/chromeos/fileapi/file_access_permissions.h

Issue 12193007: Deprecate MountPointProvider::IsAccessAllowed in favor of GetPermissionPolicy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: base::FilePath fix Created 7 years, 10 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: webkit/chromeos/fileapi/file_access_permissions.h
diff --git a/webkit/chromeos/fileapi/file_access_permissions.h b/webkit/chromeos/fileapi/file_access_permissions.h
index ba20b444012a428180b83dd6a292d60091f47d25..f62b8375eda6f7e09ac99b2b69e42bd13a75c0ec 100644
--- a/webkit/chromeos/fileapi/file_access_permissions.h
+++ b/webkit/chromeos/fileapi/file_access_permissions.h
@@ -24,7 +24,7 @@ class FileAccessPermissions {
const base::FilePath& path);
// Checks id |extension_id| has permission to access to |path|.
bool HasAccessPermission(const std::string& extension_id,
- const base::FilePath& path);
+ const base::FilePath& path) const;
// Revokes all file permissions for |extension_id|.
void RevokePermissions(const std::string& extension_id);
@@ -32,7 +32,7 @@ class FileAccessPermissions {
typedef std::set<base::FilePath> PathSet;
typedef std::map<std::string, PathSet> PathAccessMap;
- base::Lock lock_; // Synchronize all access to path_map_.
+ mutable base::Lock lock_; // Synchronize all access to path_map_.
PathAccessMap path_map_;
};
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider_unittest.cc ('k') | webkit/chromeos/fileapi/file_access_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698