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