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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "modules/filesystem/DirectoryEntrySync.h" | 32 #include "modules/filesystem/DirectoryEntrySync.h" |
33 | 33 |
34 #include "bindings/v8/ExceptionMessages.h" | 34 #include "bindings/v8/ExceptionMessages.h" |
35 #include "bindings/v8/ExceptionState.h" | 35 #include "bindings/v8/ExceptionState.h" |
36 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
37 #include "modules/filesystem/DirectoryReaderSync.h" | 37 #include "modules/filesystem/DirectoryReaderSync.h" |
38 #include "modules/filesystem/EntrySync.h" | |
39 #include "modules/filesystem/FileEntrySync.h" | 38 #include "modules/filesystem/FileEntrySync.h" |
40 #include "modules/filesystem/SyncCallbackHelper.h" | 39 #include "modules/filesystem/SyncCallbackHelper.h" |
41 | 40 |
42 namespace WebCore { | 41 namespace WebCore { |
43 | 42 |
44 DirectoryEntrySync::DirectoryEntrySync(PassRefPtr<DOMFileSystemBase> fileSystem,
const String& fullPath) | 43 DirectoryEntrySync::DirectoryEntrySync(PassRefPtr<DOMFileSystemBase> fileSystem,
const String& fullPath) |
45 : EntrySync(fileSystem, fullPath) | 44 : EntrySync(fileSystem, fullPath) |
46 { | 45 { |
47 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
48 } | 47 } |
(...skipping 29 matching lines...) Expand all Loading... |
78 { | 77 { |
79 VoidSyncCallbackHelper helper; | 78 VoidSyncCallbackHelper helper; |
80 if (!m_fileSystem->removeRecursively(this, helper.successCallback(), helper.
errorCallback(), DOMFileSystemBase::Synchronous)) { | 79 if (!m_fileSystem->removeRecursively(this, helper.successCallback(), helper.
errorCallback(), DOMFileSystemBase::Synchronous)) { |
81 es.throwDOMException(InvalidModificationError, ExceptionMessages::failed
ToExecute("removeRecursively", "DirectoryEntrySync")); | 80 es.throwDOMException(InvalidModificationError, ExceptionMessages::failed
ToExecute("removeRecursively", "DirectoryEntrySync")); |
82 return; | 81 return; |
83 } | 82 } |
84 helper.getResult(es); | 83 helper.getResult(es); |
85 } | 84 } |
86 | 85 |
87 } | 86 } |
OLD | NEW |