OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are met: | 5 * modification, are permitted provided that the following conditions are met: |
6 * | 6 * |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
23 * DAMAGE. | 23 * DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "modules/filesystem/DOMWindowFileSystem.h" | 27 #include "modules/filesystem/DOMWindowFileSystem.h" |
28 | 28 |
29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
30 #include "core/fileapi/FileError.h" | 30 #include "core/fileapi/FileError.h" |
31 #include "core/page/DOMWindow.h" | 31 #include "core/page/DOMWindow.h" |
32 #include "core/platform/AsyncFileSystem.h" | |
33 #include "modules/filesystem/DOMFileSystem.h" | 32 #include "modules/filesystem/DOMFileSystem.h" |
34 #include "modules/filesystem/EntryCallback.h" | 33 #include "modules/filesystem/EntryCallback.h" |
35 #include "modules/filesystem/ErrorCallback.h" | 34 #include "modules/filesystem/ErrorCallback.h" |
36 #include "modules/filesystem/FileSystemCallback.h" | 35 #include "modules/filesystem/FileSystemCallback.h" |
37 #include "modules/filesystem/FileSystemCallbacks.h" | 36 #include "modules/filesystem/FileSystemCallbacks.h" |
38 #include "modules/filesystem/FileSystemType.h" | 37 #include "modules/filesystem/FileSystemType.h" |
39 #include "modules/filesystem/LocalFileSystem.h" | 38 #include "modules/filesystem/LocalFileSystem.h" |
40 #include "weborigin/SecurityOrigin.h" | 39 #include "weborigin/SecurityOrigin.h" |
41 | 40 |
42 namespace WebCore { | 41 namespace WebCore { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 return; | 94 return; |
96 } | 95 } |
97 | 96 |
98 LocalFileSystem::from(document)->readFileSystem(document, type, ResolveURICa
llbacks::create(successCallback, errorCallback, document, type, filePath)); | 97 LocalFileSystem::from(document)->readFileSystem(document, type, ResolveURICa
llbacks::create(successCallback, errorCallback, document, type, filePath)); |
99 } | 98 } |
100 | 99 |
101 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<i
nt>(FileSystemTypeTemporary), enum_mismatch); | 100 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<i
nt>(FileSystemTypeTemporary), enum_mismatch); |
102 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast<
int>(FileSystemTypePersistent), enum_mismatch); | 101 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast<
int>(FileSystemTypePersistent), enum_mismatch); |
103 | 102 |
104 } // namespace WebCore | 103 } // namespace WebCore |
OLD | NEW |