| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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& url, |
| 90 FileSystemCallbackDispatcher* dispatcher, |
| 91 base::MessageLoopProxy* file_proxy, |
| 92 FileSystemContext* context) const OVERRIDE; |
| 88 | 93 |
| 89 FilePath old_base_path() const; | 94 FilePath old_base_path() const; |
| 90 FilePath new_base_path() const; | 95 FilePath new_base_path() const; |
| 91 FilePath renamed_old_base_path() const; | 96 FilePath renamed_old_base_path() const; |
| 92 | 97 |
| 93 // Returns an origin enumerator of this provider. | 98 // Returns an origin enumerator of this provider. |
| 94 // This method can only be called on the file thread. | 99 // This method can only be called on the file thread. |
| 95 OriginEnumerator* CreateOriginEnumerator() const; | 100 OriginEnumerator* CreateOriginEnumerator() const; |
| 96 | 101 |
| 97 // Gets a base directory path of the sandboxed filesystem that is | 102 // 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 | 175 |
| 171 // Acccessed only on the file thread. | 176 // Acccessed only on the file thread. |
| 172 std::set<GURL> visited_origins_; | 177 std::set<GURL> visited_origins_; |
| 173 | 178 |
| 174 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 179 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
| 175 }; | 180 }; |
| 176 | 181 |
| 177 } // namespace fileapi | 182 } // namespace fileapi |
| 178 | 183 |
| 179 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 184 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |