| OLD | NEW |
| 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 WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 // Representation of a mount point exposed by this external mount point | 98 // Representation of a mount point exposed by this external mount point |
| 99 // provider. | 99 // provider. |
| 100 struct MountPoint { | 100 struct MountPoint { |
| 101 MountPoint(const FilePath& web_path, | 101 MountPoint(const FilePath& web_path, |
| 102 const FilePath& local_path, | 102 const FilePath& local_path, |
| 103 FileSystemLocation loc, | 103 FileSystemLocation loc, |
| 104 fileapi::RemoteFileSystemProxyInterface* proxy); | 104 fileapi::RemoteFileSystemProxyInterface* proxy); |
| 105 virtual ~MountPoint(); | 105 virtual ~MountPoint(); |
| 106 // Virtual web path, relative to external root in filesytem URLs. | 106 // Virtual web path, relative to external root in filesystem URLs. |
| 107 // For example, in "filesystem://.../external/foo/bar/" this path would | 107 // For example, in "filesystem://.../external/foo/bar/" this path would |
| 108 // map to "foo/bar/". | 108 // map to "foo/bar/". |
| 109 const FilePath web_root_path; | 109 const FilePath web_root_path; |
| 110 // Parent directory for the exposed file system path. For example, | 110 // Parent directory for the exposed file system path. For example, |
| 111 // mount point that exposes "/media/removable" would have this | 111 // mount point that exposes "/media/removable" would have this |
| 112 // root path as "/media". | 112 // root path as "/media". |
| 113 const FilePath local_root_path; | 113 const FilePath local_root_path; |
| 114 // File system location. | 114 // File system location. |
| 115 const FileSystemLocation location; | 115 const FileSystemLocation location; |
| 116 // Remote file system proxy for remote mount points. | 116 // Remote file system proxy for remote mount points. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 130 MountPointMap mount_point_map_; | 130 MountPointMap mount_point_map_; |
| 131 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; | 131 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |
| 132 scoped_ptr<FileAccessPermissions> file_access_permissions_; | 132 scoped_ptr<FileAccessPermissions> file_access_permissions_; |
| 133 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; | 133 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; |
| 134 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); | 134 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace chromeos | 137 } // namespace chromeos |
| 138 | 138 |
| 139 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ | 139 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |