| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 #include "WorkerContextFileSystem.h" | 29 #include "WorkerContextFileSystem.h" |
| 30 | 30 |
| 31 #if ENABLE(FILE_SYSTEM) | |
| 32 | |
| 33 #include "AsyncFileSystem.h" | 31 #include "AsyncFileSystem.h" |
| 34 #include "DOMFileSystemBase.h" | 32 #include "DOMFileSystemBase.h" |
| 35 #include "DOMFileSystemSync.h" | 33 #include "DOMFileSystemSync.h" |
| 36 #include "DirectoryEntrySync.h" | 34 #include "DirectoryEntrySync.h" |
| 37 #include "ErrorCallback.h" | 35 #include "ErrorCallback.h" |
| 38 #include "FileEntrySync.h" | 36 #include "FileEntrySync.h" |
| 39 #include "FileError.h" | 37 #include "FileError.h" |
| 40 #include "FileException.h" | 38 #include "FileException.h" |
| 41 #include "FileSystemCallback.h" | 39 #include "FileSystemCallback.h" |
| 42 #include "FileSystemCallbacks.h" | 40 #include "FileSystemCallbacks.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 if (ec == FileException::TYPE_MISMATCH_ERR) | 129 if (ec == FileException::TYPE_MISMATCH_ERR) |
| 132 return fileSystem->root()->getFile(filePath, Dictionary(), ec); | 130 return fileSystem->root()->getFile(filePath, Dictionary(), ec); |
| 133 | 131 |
| 134 return entry.release(); | 132 return entry.release(); |
| 135 } | 133 } |
| 136 | 134 |
| 137 COMPILE_ASSERT(static_cast<int>(WorkerContextFileSystem::TEMPORARY) == static_ca
st<int>(FileSystemTypeTemporary), enum_mismatch); | 135 COMPILE_ASSERT(static_cast<int>(WorkerContextFileSystem::TEMPORARY) == static_ca
st<int>(FileSystemTypeTemporary), enum_mismatch); |
| 138 COMPILE_ASSERT(static_cast<int>(WorkerContextFileSystem::PERSISTENT) == static_c
ast<int>(FileSystemTypePersistent), enum_mismatch); | 136 COMPILE_ASSERT(static_cast<int>(WorkerContextFileSystem::PERSISTENT) == static_c
ast<int>(FileSystemTypePersistent), enum_mismatch); |
| 139 | 137 |
| 140 } // namespace WebCore | 138 } // namespace WebCore |
| 141 | |
| 142 #endif // ENABLE(FILE_SYSTEM) | |
| OLD | NEW |