OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MOUNT_POINTS_H_ | 5 #ifndef WEBKIT_FILEAPI_MOUNT_POINTS_H_ |
6 #define WEBKIT_FILEAPI_MOUNT_POINTS_H_ | 6 #define WEBKIT_FILEAPI_MOUNT_POINTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // Returns false if the given virtual_path cannot be cracked. | 81 // Returns false if the given virtual_path cannot be cracked. |
82 // | 82 // |
83 // Note that |path| is set to empty paths if the filesystem type is isolated | 83 // Note that |path| is set to empty paths if the filesystem type is isolated |
84 // and |virtual_path| has no <relative_path> part (i.e. pointing to the | 84 // and |virtual_path| has no <relative_path> part (i.e. pointing to the |
85 // virtual root). | 85 // virtual root). |
86 virtual bool CrackVirtualPath(const base::FilePath& virtual_path, | 86 virtual bool CrackVirtualPath(const base::FilePath& virtual_path, |
87 std::string* mount_name, | 87 std::string* mount_name, |
88 FileSystemType* type, | 88 FileSystemType* type, |
89 base::FilePath* path) const = 0; | 89 base::FilePath* path) const = 0; |
90 | 90 |
| 91 protected: |
| 92 friend class FileSystemContext; |
| 93 |
| 94 // Same as CrackURL and CreateCrackedFileSystemURL, but cracks the url already |
| 95 // instantiated as the FileSystemURL class. This is internally used for nested |
| 96 // URL cracking in FileSystemContext. |
| 97 virtual FileSystemURL CrackFileSystemURL(const FileSystemURL& url) const = 0; |
| 98 |
91 private: | 99 private: |
92 DISALLOW_COPY_AND_ASSIGN(MountPoints); | 100 DISALLOW_COPY_AND_ASSIGN(MountPoints); |
93 }; | 101 }; |
94 | 102 |
95 } // namespace fileapi | 103 } // namespace fileapi |
96 | 104 |
97 #endif // WEBKIT_FILEAPI_MOUNT_POINTS_H_ | 105 #endif // WEBKIT_FILEAPI_MOUNT_POINTS_H_ |
98 | 106 |
OLD | NEW |