| 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_EXTERNAL_MOUNT_POINTS_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 // MountPoints overrides. | 67 // MountPoints overrides. |
| 68 virtual bool HandlesFileSystemMountType(FileSystemType type) const OVERRIDE; | 68 virtual bool HandlesFileSystemMountType(FileSystemType type) const OVERRIDE; |
| 69 virtual bool RevokeFileSystem(const std::string& mount_name) OVERRIDE; | 69 virtual bool RevokeFileSystem(const std::string& mount_name) OVERRIDE; |
| 70 virtual bool GetRegisteredPath(const std::string& mount_name, | 70 virtual bool GetRegisteredPath(const std::string& mount_name, |
| 71 base::FilePath* path) const OVERRIDE; | 71 base::FilePath* path) const OVERRIDE; |
| 72 virtual bool CrackVirtualPath( | 72 virtual bool CrackVirtualPath( |
| 73 const base::FilePath& virtual_path, | 73 const base::FilePath& virtual_path, |
| 74 std::string* mount_name, | 74 std::string* mount_name, |
| 75 FileSystemType* type, | 75 FileSystemType* type, |
| 76 std::string* cracked_id, |
| 76 base::FilePath* path, | 77 base::FilePath* path, |
| 77 FileSystemMountOption* mount_option) const OVERRIDE; | 78 FileSystemMountOption* mount_option) const OVERRIDE; |
| 78 virtual FileSystemURL CrackURL(const GURL& url) const OVERRIDE; | 79 virtual FileSystemURL CrackURL(const GURL& url) const OVERRIDE; |
| 79 virtual FileSystemURL CreateCrackedFileSystemURL( | 80 virtual FileSystemURL CreateCrackedFileSystemURL( |
| 80 const GURL& origin, | 81 const GURL& origin, |
| 81 FileSystemType type, | 82 FileSystemType type, |
| 82 const base::FilePath& path) const OVERRIDE; | 83 const base::FilePath& path) const OVERRIDE; |
| 83 | 84 |
| 84 // Returns a list of registered MountPointInfos (of <mount_name, path>). | 85 // Returns a list of registered MountPointInfos (of <mount_name, path>). |
| 85 void AddMountPointInfosTo(std::vector<MountPointInfo>* mount_points) const; | 86 void AddMountPointInfosTo(std::vector<MountPointInfo>* mount_points) const; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 150 |
| 150 NameToInstance instance_map_; | 151 NameToInstance instance_map_; |
| 151 PathToName path_to_name_map_; | 152 PathToName path_to_name_map_; |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(ExternalMountPoints); | 154 DISALLOW_COPY_AND_ASSIGN(ExternalMountPoints); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 } // namespace fileapi | 157 } // namespace fileapi |
| 157 | 158 |
| 158 #endif // WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ | 159 #endif // WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ |
| OLD | NEW |