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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 CreateCrackedFileSystemURL( | 142 virtual FileSystemURL CreateCrackedFileSystemURL( |
143 const GURL& origin, | 143 const GURL& origin, |
144 FileSystemType type, | 144 FileSystemType type, |
145 const base::FilePath& path) const OVERRIDE; | 145 const base::FilePath& path) const OVERRIDE; |
| 146 // |GetVirtualPath| is not supported. Always returns false. |
| 147 virtual bool GetVirtualPath(const base::FilePath& full_path, |
| 148 base::FilePath* virtual_path) const OVERRIDE; |
146 | 149 |
147 // Returns the virtual root path that looks like /<filesystem_id>. | 150 // Returns the virtual root path that looks like /<filesystem_id>. |
148 base::FilePath CreateVirtualRootPath(const std::string& filesystem_id) const; | 151 base::FilePath CreateVirtualRootPath(const std::string& filesystem_id) const; |
149 | 152 |
150 private: | 153 private: |
151 friend struct base::DefaultLazyInstanceTraits<IsolatedContext>; | 154 friend struct base::DefaultLazyInstanceTraits<IsolatedContext>; |
152 | 155 |
153 // Represents each file system instance (defined in the .cc). | 156 // Represents each file system instance (defined in the .cc). |
154 class Instance; | 157 class Instance; |
155 | 158 |
(...skipping 18 matching lines...) Expand all Loading... |
174 | 177 |
175 IDToInstance instance_map_; | 178 IDToInstance instance_map_; |
176 PathToID path_to_id_map_; | 179 PathToID path_to_id_map_; |
177 | 180 |
178 DISALLOW_COPY_AND_ASSIGN(IsolatedContext); | 181 DISALLOW_COPY_AND_ASSIGN(IsolatedContext); |
179 }; | 182 }; |
180 | 183 |
181 } // namespace fileapi | 184 } // namespace fileapi |
182 | 185 |
183 #endif // WEBKIT_FILEAPI_ISOLATED_CONTEXT_H_ | 186 #endif // WEBKIT_FILEAPI_ISOLATED_CONTEXT_H_ |
OLD | NEW |