OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ISOLATED_CONTEXT_H_ | 5 #ifndef WEBKIT_FILEAPI_ISOLATED_CONTEXT_H_ |
6 #define WEBKIT_FILEAPI_ISOLATED_CONTEXT_H_ | 6 #define WEBKIT_FILEAPI_ISOLATED_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // MountPoints overrides. | 132 // MountPoints overrides. |
133 virtual bool HandlesFileSystemMountType(FileSystemType type) const OVERRIDE; | 133 virtual bool HandlesFileSystemMountType(FileSystemType type) const OVERRIDE; |
134 virtual bool RevokeFileSystem(const std::string& filesystem_id) OVERRIDE; | 134 virtual bool RevokeFileSystem(const std::string& filesystem_id) OVERRIDE; |
135 virtual bool GetRegisteredPath(const std::string& filesystem_id, | 135 virtual bool GetRegisteredPath(const std::string& filesystem_id, |
136 base::FilePath* path) const OVERRIDE; | 136 base::FilePath* path) const OVERRIDE; |
137 virtual bool CrackVirtualPath(const base::FilePath& virtual_path, | 137 virtual bool CrackVirtualPath(const base::FilePath& virtual_path, |
138 std::string* filesystem_id, | 138 std::string* filesystem_id, |
139 FileSystemType* type, | 139 FileSystemType* type, |
140 base::FilePath* path) const OVERRIDE; | 140 base::FilePath* path) const OVERRIDE; |
141 virtual FileSystemURL CrackURL(const GURL& url) const OVERRIDE; | 141 virtual FileSystemURL CrackURL(const GURL& url) const OVERRIDE; |
| 142 virtual FileSystemURL CrackFileSystemURL( |
| 143 const FileSystemURL& url) const OVERRIDE; |
142 virtual FileSystemURL CreateCrackedFileSystemURL( | 144 virtual FileSystemURL CreateCrackedFileSystemURL( |
143 const GURL& origin, | 145 const GURL& origin, |
144 FileSystemType type, | 146 FileSystemType type, |
145 const base::FilePath& path) const OVERRIDE; | 147 const base::FilePath& path) const OVERRIDE; |
146 | 148 |
147 // Returns the virtual root path that looks like /<filesystem_id>. | 149 // Returns the virtual root path that looks like /<filesystem_id>. |
148 base::FilePath CreateVirtualRootPath(const std::string& filesystem_id) const; | 150 base::FilePath CreateVirtualRootPath(const std::string& filesystem_id) const; |
149 | 151 |
150 private: | 152 private: |
151 friend struct base::DefaultLazyInstanceTraits<IsolatedContext>; | 153 friend struct base::DefaultLazyInstanceTraits<IsolatedContext>; |
(...skipping 22 matching lines...) Expand all Loading... |
174 | 176 |
175 IDToInstance instance_map_; | 177 IDToInstance instance_map_; |
176 PathToID path_to_id_map_; | 178 PathToID path_to_id_map_; |
177 | 179 |
178 DISALLOW_COPY_AND_ASSIGN(IsolatedContext); | 180 DISALLOW_COPY_AND_ASSIGN(IsolatedContext); |
179 }; | 181 }; |
180 | 182 |
181 } // namespace fileapi | 183 } // namespace fileapi |
182 | 184 |
183 #endif // WEBKIT_FILEAPI_ISOLATED_CONTEXT_H_ | 185 #endif // WEBKIT_FILEAPI_ISOLATED_CONTEXT_H_ |
OLD | NEW |