| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 OwnPtr<AsyncFileSystemCallbacks> callbacks(EntryCallbacks::create(successCal
lback, errorCallback, this, absolutePath, true)); | 314 OwnPtr<AsyncFileSystemCallbacks> callbacks(EntryCallbacks::create(successCal
lback, errorCallback, this, absolutePath, true)); |
| 315 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous); | 315 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous); |
| 316 | 316 |
| 317 if (flags.create) | 317 if (flags.create) |
| 318 fileSystem()->createDirectory(createFileSystemURL(absolutePath), flags.e
xclusive, callbacks.release()); | 318 fileSystem()->createDirectory(createFileSystemURL(absolutePath), flags.e
xclusive, callbacks.release()); |
| 319 else | 319 else |
| 320 fileSystem()->directoryExists(createFileSystemURL(absolutePath), callbac
ks.release()); | 320 fileSystem()->directoryExists(createFileSystemURL(absolutePath), callbac
ks.release()); |
| 321 } | 321 } |
| 322 | 322 |
| 323 bool DOMFileSystemBase::readDirectory(PassRefPtr<DirectoryReaderBase> reader, co
nst String& path, PassOwnPtr<EntriesCallback> successCallback, PassOwnPtr<ErrorC
allback> errorCallback, SynchronousType synchronousType) | 323 bool DOMFileSystemBase::readDirectory(PassRefPtrWillBeRawPtr<DirectoryReaderBase
> reader, const String& path, PassOwnPtr<EntriesCallback> successCallback, PassO
wnPtr<ErrorCallback> errorCallback, SynchronousType synchronousType) |
| 324 { | 324 { |
| 325 ASSERT(DOMFilePath::isAbsolute(path)); | 325 ASSERT(DOMFilePath::isAbsolute(path)); |
| 326 | 326 |
| 327 OwnPtr<AsyncFileSystemCallbacks> callbacks(EntriesCallbacks::create(successC
allback, errorCallback, reader, path)); | 327 OwnPtr<AsyncFileSystemCallbacks> callbacks(EntriesCallbacks::create(successC
allback, errorCallback, reader, path)); |
| 328 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous); | 328 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous); |
| 329 | 329 |
| 330 fileSystem()->readDirectory(createFileSystemURL(path), callbacks.release()); | 330 fileSystem()->readDirectory(createFileSystemURL(path), callbacks.release()); |
| 331 return true; | 331 return true; |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace WebCore | 334 } // namespace WebCore |
| OLD | NEW |