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

Unified Diff: webkit/chromeos/fileapi/cros_mount_point_provider.cc

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/cros_mount_point_provider.cc
===================================================================
--- webkit/chromeos/fileapi/cros_mount_point_provider.cc (revision 80624)
+++ 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

Powered by Google App Engine
This is Rietveld 408576698