| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 FileSystemType type, | 34 FileSystemType type, |
| 35 const FilePath& virtual_path); | 35 const FilePath& virtual_path); |
| 36 | 36 |
| 37 // Retrieves the root path for the given |origin_url| and |type|, and | 37 // Retrieves the root path for the given |origin_url| and |type|, and |
| 38 // calls the given |callback| with the root path and name. | 38 // calls the given |callback| with the root path and name. |
| 39 // If |create| is true this also creates the directory if it doesn't exist. | 39 // If |create| is true this also creates the directory if it doesn't exist. |
| 40 virtual void GetFileSystemRootPath( | 40 virtual void GetFileSystemRootPath( |
| 41 const GURL& origin_url, | 41 const GURL& origin_url, |
| 42 FileSystemType type, | 42 FileSystemType type, |
| 43 bool create, | 43 bool create, |
| 44 bool is_file_system, |
| 45 const FilePath& virtual_path, |
| 44 FileSystemPathManager::GetRootPathCallback* callback); | 46 FileSystemPathManager::GetRootPathCallback* callback); |
| 45 | 47 |
| 46 // Like GetFileSystemRootPath, but synchronous, and can be called only while | 48 // Like GetFileSystemRootPath, but synchronous, and can be called only while |
| 47 // running on the file thread. | 49 // running on the file thread. |
| 48 virtual FilePath GetFileSystemRootPathOnFileThread( | 50 virtual FilePath GetFileSystemRootPathOnFileThread( |
| 49 const GURL& origin_url, | 51 const GURL& origin_url, |
| 50 FileSystemType type, | 52 FileSystemType type, |
| 51 const FilePath& unused, | 53 const FilePath& unused, |
| 52 bool create); | 54 bool create); |
| 53 | 55 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 117 |
| 116 const FilePath base_path_; | 118 const FilePath base_path_; |
| 117 | 119 |
| 118 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 120 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
| 119 }; | 121 }; |
| 120 | 122 |
| 121 } // namespace fileapi | 123 } // namespace fileapi |
| 122 | 124 |
| 123 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 125 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| 124 | 126 |
| OLD | NEW |