| 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_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // arguments. | 231 // arguments. |
| 232 FileSystemURL CreateCrackedFileSystemURL(const GURL& origin, | 232 FileSystemURL CreateCrackedFileSystemURL(const GURL& origin, |
| 233 FileSystemType type, | 233 FileSystemType type, |
| 234 const base::FilePath& path) const; | 234 const base::FilePath& path) const; |
| 235 | 235 |
| 236 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) | 236 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) |
| 237 // Used only on ChromeOS for now. | 237 // Used only on ChromeOS for now. |
| 238 void EnableTemporaryFileSystemInIncognito(); | 238 void EnableTemporaryFileSystemInIncognito(); |
| 239 #endif | 239 #endif |
| 240 | 240 |
| 241 SandboxContext* sandbox_context() { return sandbox_context_.get(); } |
| 242 |
| 241 private: | 243 private: |
| 242 typedef std::map<FileSystemType, FileSystemBackend*> | 244 typedef std::map<FileSystemType, FileSystemBackend*> |
| 243 FileSystemBackendMap; | 245 FileSystemBackendMap; |
| 244 | 246 |
| 245 // For CreateFileSystemOperation. | 247 // For CreateFileSystemOperation. |
| 246 friend class FileSystemOperationRunner; | 248 friend class FileSystemOperationRunner; |
| 247 | 249 |
| 248 // For sandbox_backend(). | 250 // For sandbox_backend(). |
| 249 friend class SandboxFileSystemTestHelper; | 251 friend class SandboxFileSystemTestHelper; |
| 250 | 252 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 331 |
| 330 struct DefaultContextDeleter { | 332 struct DefaultContextDeleter { |
| 331 static void Destruct(const FileSystemContext* context) { | 333 static void Destruct(const FileSystemContext* context) { |
| 332 context->DeleteOnCorrectThread(); | 334 context->DeleteOnCorrectThread(); |
| 333 } | 335 } |
| 334 }; | 336 }; |
| 335 | 337 |
| 336 } // namespace fileapi | 338 } // namespace fileapi |
| 337 | 339 |
| 338 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 340 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |