OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "config.h" | 31 #include "config.h" |
32 #include "modules/filesystem/DOMFileSystemBase.h" | 32 #include "modules/filesystem/DOMFileSystemBase.h" |
33 | 33 |
34 #include "core/dom/ScriptExecutionContext.h" | 34 #include "core/dom/ScriptExecutionContext.h" |
35 #include "core/fileapi/FileError.h" | 35 #include "core/fileapi/FileError.h" |
36 #include "core/html/VoidCallback.h" | 36 #include "core/html/VoidCallback.h" |
37 #include "modules/filesystem/DOMFilePath.h" | 37 #include "modules/filesystem/DOMFilePath.h" |
38 #include "modules/filesystem/DirectoryEntry.h" | 38 #include "modules/filesystem/DirectoryEntry.h" |
39 #include "modules/filesystem/DirectoryReaderBase.h" | 39 #include "modules/filesystem/DirectoryReaderBase.h" |
40 #include "modules/filesystem/EntriesCallback.h" | 40 #include "modules/filesystem/EntriesCallback.h" |
41 #include "modules/filesystem/EntryArray.h" | 41 #include "modules/filesystem/Entry.h" |
42 #include "modules/filesystem/EntryBase.h" | 42 #include "modules/filesystem/EntryBase.h" |
43 #include "modules/filesystem/EntryCallback.h" | 43 #include "modules/filesystem/EntryCallback.h" |
44 #include "modules/filesystem/ErrorCallback.h" | 44 #include "modules/filesystem/ErrorCallback.h" |
45 #include "modules/filesystem/FileSystemCallbacks.h" | 45 #include "modules/filesystem/FileSystemCallbacks.h" |
46 #include "modules/filesystem/MetadataCallback.h" | 46 #include "modules/filesystem/MetadataCallback.h" |
47 #include "weborigin/SecurityOrigin.h" | 47 #include "weborigin/SecurityOrigin.h" |
48 #include "wtf/OwnPtr.h" | 48 #include "wtf/OwnPtr.h" |
49 #include "wtf/text/StringBuilder.h" | 49 #include "wtf/text/StringBuilder.h" |
50 #include "wtf/text/WTFString.h" | 50 #include "wtf/text/WTFString.h" |
51 | 51 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 ASSERT(DOMFilePath::isAbsolute(path)); | 288 ASSERT(DOMFilePath::isAbsolute(path)); |
289 | 289 |
290 OwnPtr<EntriesCallbacks> callbacks(EntriesCallbacks::create(successCallback,
errorCallback, reader, path)); | 290 OwnPtr<EntriesCallbacks> callbacks(EntriesCallbacks::create(successCallback,
errorCallback, reader, path)); |
291 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous); | 291 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous); |
292 | 292 |
293 m_asyncFileSystem->readDirectory(createFileSystemURL(path), callbacks.releas
e()); | 293 m_asyncFileSystem->readDirectory(createFileSystemURL(path), callbacks.releas
e()); |
294 return true; | 294 return true; |
295 } | 295 } |
296 | 296 |
297 } // namespace WebCore | 297 } // namespace WebCore |
OLD | NEW |