| 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_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 FileSystemType type, | 78 FileSystemType type, |
| 79 const FilePath& virtual_path, | 79 const FilePath& virtual_path, |
| 80 bool create) OVERRIDE; | 80 bool create) OVERRIDE; |
| 81 virtual bool IsAccessAllowed( | 81 virtual bool IsAccessAllowed( |
| 82 const GURL& origin_url, | 82 const GURL& origin_url, |
| 83 FileSystemType type, | 83 FileSystemType type, |
| 84 const FilePath& virtual_path) OVERRIDE; | 84 const FilePath& virtual_path) OVERRIDE; |
| 85 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; | 85 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; |
| 86 virtual std::vector<FilePath> GetRootDirectories() const OVERRIDE; | 86 virtual std::vector<FilePath> GetRootDirectories() const OVERRIDE; |
| 87 virtual FileSystemFileUtil* GetFileUtil() OVERRIDE; | 87 virtual FileSystemFileUtil* GetFileUtil() OVERRIDE; |
| 88 virtual FileSystemOperationInterface* CreateFileSystemOperation( |
| 89 const GURL& origin_url, |
| 90 FileSystemType file_system_type, |
| 91 const FilePath& virtual_path, |
| 92 scoped_ptr<FileSystemCallbackDispatcher> dispatcher, |
| 93 base::MessageLoopProxy* file_proxy, |
| 94 FileSystemContext* context) const OVERRIDE; |
| 88 | 95 |
| 89 FilePath old_base_path() const; | 96 FilePath old_base_path() const; |
| 90 FilePath new_base_path() const; | 97 FilePath new_base_path() const; |
| 91 FilePath renamed_old_base_path() const; | 98 FilePath renamed_old_base_path() const; |
| 92 | 99 |
| 93 // Returns an origin enumerator of this provider. | 100 // Returns an origin enumerator of this provider. |
| 94 // This method can only be called on the file thread. | 101 // This method can only be called on the file thread. |
| 95 OriginEnumerator* CreateOriginEnumerator() const; | 102 OriginEnumerator* CreateOriginEnumerator() const; |
| 96 | 103 |
| 97 // Gets a base directory path of the sandboxed filesystem that is | 104 // Gets a base directory path of the sandboxed filesystem that is |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 177 |
| 171 // Acccessed only on the file thread. | 178 // Acccessed only on the file thread. |
| 172 std::set<GURL> visited_origins_; | 179 std::set<GURL> visited_origins_; |
| 173 | 180 |
| 174 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 181 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
| 175 }; | 182 }; |
| 176 | 183 |
| 177 } // namespace fileapi | 184 } // namespace fileapi |
| 178 | 185 |
| 179 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 186 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |