| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // fileapi::ExternalFileSystemMountPointProvider overrides. | 82 // fileapi::ExternalFileSystemMountPointProvider overrides. |
| 83 virtual std::vector<FilePath> GetRootDirectories() const OVERRIDE; | 83 virtual std::vector<FilePath> GetRootDirectories() const OVERRIDE; |
| 84 virtual void GrantFullAccessToExtension( | 84 virtual void GrantFullAccessToExtension( |
| 85 const std::string& extension_id) OVERRIDE; | 85 const std::string& extension_id) OVERRIDE; |
| 86 virtual void GrantFileAccessToExtension( | 86 virtual void GrantFileAccessToExtension( |
| 87 const std::string& extension_id, const FilePath& virtual_path) OVERRIDE; | 87 const std::string& extension_id, const FilePath& virtual_path) OVERRIDE; |
| 88 virtual void RevokeAccessForExtension( | 88 virtual void RevokeAccessForExtension( |
| 89 const std::string& extension_id) OVERRIDE; | 89 const std::string& extension_id) OVERRIDE; |
| 90 virtual bool HasMountPoint(const FilePath& mount_point) OVERRIDE; | 90 virtual bool HasMountPoint(const FilePath& mount_point) OVERRIDE; |
| 91 virtual void AddLocalMountPoint(const FilePath& mount_point) OVERRIDE; | 91 virtual void AddLocalMountPoint(const FilePath& mount_point) OVERRIDE; |
| 92 virtual void AddRestrictedLocalMountPoint( |
| 93 const FilePath& mount_point) OVERRIDE; |
| 92 virtual void AddRemoteMountPoint( | 94 virtual void AddRemoteMountPoint( |
| 93 const FilePath& mount_point, | 95 const FilePath& mount_point, |
| 94 fileapi::RemoteFileSystemProxyInterface* remote_proxy) OVERRIDE; | 96 fileapi::RemoteFileSystemProxyInterface* remote_proxy) OVERRIDE; |
| 95 virtual void RemoveMountPoint(const FilePath& mount_point) OVERRIDE; | 97 virtual void RemoveMountPoint(const FilePath& mount_point) OVERRIDE; |
| 96 virtual bool GetVirtualPath(const FilePath& filesystem_path, | 98 virtual bool GetVirtualPath(const FilePath& filesystem_path, |
| 97 FilePath* virtual_path) OVERRIDE; | 99 FilePath* virtual_path) OVERRIDE; |
| 98 | 100 |
| 99 private: | 101 private: |
| 100 typedef scoped_refptr<fileapi::RemoteFileSystemProxyInterface> RemoteProxy; | 102 typedef scoped_refptr<fileapi::RemoteFileSystemProxyInterface> RemoteProxy; |
| 101 typedef std::map<FilePath::StringType, RemoteProxy> RemoteProxyMap; | 103 typedef std::map<FilePath::StringType, RemoteProxy> RemoteProxyMap; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 112 | 114 |
| 113 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; | 115 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |
| 114 scoped_ptr<FileAccessPermissions> file_access_permissions_; | 116 scoped_ptr<FileAccessPermissions> file_access_permissions_; |
| 115 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; | 117 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; |
| 116 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); | 118 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); |
| 117 }; | 119 }; |
| 118 | 120 |
| 119 } // namespace chromeos | 121 } // namespace chromeos |
| 120 | 122 |
| 121 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ | 123 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |