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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 DirectoryReaderSync* DirectoryEntrySync::createReader() | 48 DirectoryReaderSync* DirectoryEntrySync::createReader() |
49 { | 49 { |
50 return DirectoryReaderSync::create(m_fileSystem, m_fullPath); | 50 return DirectoryReaderSync::create(m_fileSystem, m_fullPath); |
51 } | 51 } |
52 | 52 |
53 FileEntrySync* DirectoryEntrySync::getFile(const String& path, const FileSystemF
lags& options, ExceptionState& exceptionState) | 53 FileEntrySync* DirectoryEntrySync::getFile(const String& path, const FileSystemF
lags& options, ExceptionState& exceptionState) |
54 { | 54 { |
55 EntrySyncCallbackHelper* helper = EntrySyncCallbackHelper::create(); | 55 EntrySyncCallbackHelper* helper = EntrySyncCallbackHelper::create(); |
56 m_fileSystem->getFile(this, path, options, helper->successCallback(), helper
->errorCallback(), DOMFileSystemBase::Synchronous); | 56 m_fileSystem->getFile(this, path, options, helper->getSuccessCallback(), hel
per->getErrorCallback(), DOMFileSystemBase::Synchronous); |
57 return static_cast<FileEntrySync*>(helper->getResult(exceptionState)); | 57 return static_cast<FileEntrySync*>(helper->getResult(exceptionState)); |
58 } | 58 } |
59 | 59 |
60 DirectoryEntrySync* DirectoryEntrySync::getDirectory(const String& path, const F
ileSystemFlags& options, ExceptionState& exceptionState) | 60 DirectoryEntrySync* DirectoryEntrySync::getDirectory(const String& path, const F
ileSystemFlags& options, ExceptionState& exceptionState) |
61 { | 61 { |
62 EntrySyncCallbackHelper* helper = EntrySyncCallbackHelper::create(); | 62 EntrySyncCallbackHelper* helper = EntrySyncCallbackHelper::create(); |
63 m_fileSystem->getDirectory(this, path, options, helper->successCallback(), h
elper->errorCallback(), DOMFileSystemBase::Synchronous); | 63 m_fileSystem->getDirectory(this, path, options, helper->getSuccessCallback()
, helper->getErrorCallback(), DOMFileSystemBase::Synchronous); |
64 return static_cast<DirectoryEntrySync*>(helper->getResult(exceptionState)); | 64 return static_cast<DirectoryEntrySync*>(helper->getResult(exceptionState)); |
65 } | 65 } |
66 | 66 |
67 void DirectoryEntrySync::removeRecursively(ExceptionState& exceptionState) | 67 void DirectoryEntrySync::removeRecursively(ExceptionState& exceptionState) |
68 { | 68 { |
69 VoidSyncCallbackHelper* helper = VoidSyncCallbackHelper::create(); | 69 VoidSyncCallbackHelper* helper = VoidSyncCallbackHelper::create(); |
70 m_fileSystem->removeRecursively(this, helper->successCallback(), helper->err
orCallback(), DOMFileSystemBase::Synchronous); | 70 m_fileSystem->removeRecursively(this, helper->getSuccessCallback(), helper->
getErrorCallback(), DOMFileSystemBase::Synchronous); |
71 helper->getResult(exceptionState); | 71 helper->getResult(exceptionState); |
72 } | 72 } |
73 | 73 |
74 DEFINE_TRACE(DirectoryEntrySync) | 74 DEFINE_TRACE(DirectoryEntrySync) |
75 { | 75 { |
76 EntrySync::trace(visitor); | 76 EntrySync::trace(visitor); |
77 } | 77 } |
78 | 78 |
79 } // namespace blink | 79 } // namespace blink |
OLD | NEW |