| Index: webkit/chromeos/fileapi/cros_mount_point_provider.cc
|
| ===================================================================
|
| --- webkit/chromeos/fileapi/cros_mount_point_provider.cc (revision 80841)
|
| +++ webkit/chromeos/fileapi/cros_mount_point_provider.cc (working copy)
|
| @@ -116,9 +116,27 @@
|
| return false;
|
| }
|
|
|
| -bool CrosMountPointProvider::IsAccessAllowed(const GURL& origin_url) {
|
| - return special_storage_policy_->IsLocalFileSystemAccessAllowed(origin_url);
|
| +bool CrosMountPointProvider::IsAccessAllowed(const GURL& origin_url,
|
| + const FilePath& virtual_path) {
|
| + return special_storage_policy_->IsLocalFileSystemAccessAllowed(origin_url,
|
| + virtual_path);
|
| }
|
|
|
| +void CrosMountPointProvider::GrantAccess(const GURL& origin_url,
|
| + const FilePath& virtual_path) {
|
| + special_storage_policy_->GrantLocalFileSystemAccess(origin_url, virtual_path);
|
| +}
|
| +
|
| +std::vector<FilePath> CrosMountPointProvider::GetRootDirectories() const {
|
| + std::vector<FilePath> root_dirs;
|
| + for (MountPointMap::const_iterator iter = mount_point_map_.begin();
|
| + iter != mount_point_map_.end();
|
| + ++iter) {
|
| + FilePath path(iter->second);
|
| + root_dirs.push_back(path.Append(iter->first));
|
| + }
|
| + return root_dirs;
|
| +}
|
| +
|
| } // namespace chromeos
|
|
|
|
|