diff options
author | John Reck <jreck@google.com> | 2010-11-04 12:00:17 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-11-09 11:35:04 -0800 |
commit | e14391e94c850b8bd03680c23b38978db68687a8 (patch) | |
tree | 3fed87e6620fecaf3edc7259ae58a11662bedcb2 /WebCore/fileapi/FileSystemCallbacks.h | |
parent | 1bd705833a68f07850cf7e204b26f8d328d16951 (diff) | |
download | external_webkit-e14391e94c850b8bd03680c23b38978db68687a8.zip external_webkit-e14391e94c850b8bd03680c23b38978db68687a8.tar.gz external_webkit-e14391e94c850b8bd03680c23b38978db68687a8.tar.bz2 |
Merge Webkit at r70949: Initial merge by git.
Change-Id: I77b8645c083b5d0da8dba73ed01d4014aab9848e
Diffstat (limited to 'WebCore/fileapi/FileSystemCallbacks.h')
-rw-r--r-- | WebCore/fileapi/FileSystemCallbacks.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/WebCore/fileapi/FileSystemCallbacks.h b/WebCore/fileapi/FileSystemCallbacks.h index c600a76..100fd0c 100644 --- a/WebCore/fileapi/FileSystemCallbacks.h +++ b/WebCore/fileapi/FileSystemCallbacks.h @@ -47,6 +47,7 @@ class ErrorCallback; class EntriesCallback; class EntryArray; class EntryCallback; +struct FileMetadata; class FileSystemCallback; class FileWriter; class FileWriterCallback; @@ -65,7 +66,7 @@ public: virtual void didOpenFileSystem(const String& name, PassOwnPtr<AsyncFileSystem>); // For MetadataCallbacks. - virtual void didReadMetadata(double modificationTime); + virtual void didReadMetadata(const FileMetadata&); // For EntriesCallbacks. didReadDirectoryEntry is called each time the API reads an entry, and didReadDirectoryDone is called when a chunk of entries have been read (i.e. good time to call back to the application). If hasMore is true there can be more chunks. virtual void didReadDirectoryEntry(const String& name, bool isDirectory); @@ -86,27 +87,27 @@ protected: class EntryCallbacks : public FileSystemCallbacksBase { public: - static PassOwnPtr<EntryCallbacks> create(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, DOMFileSystemBase*, const String& expectedPath, bool isDirectory); + static PassOwnPtr<EntryCallbacks> create(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, PassRefPtr<DOMFileSystemBase>, const String& expectedPath, bool isDirectory); virtual void didSucceed(); private: - EntryCallbacks(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, DOMFileSystemBase*, const String& expectedPath, bool isDirectory); + EntryCallbacks(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, PassRefPtr<DOMFileSystemBase>, const String& expectedPath, bool isDirectory); RefPtr<EntryCallback> m_successCallback; - DOMFileSystemBase* m_fileSystem; + RefPtr<DOMFileSystemBase> m_fileSystem; String m_expectedPath; bool m_isDirectory; }; class EntriesCallbacks : public FileSystemCallbacksBase { public: - static PassOwnPtr<EntriesCallbacks> create(PassRefPtr<EntriesCallback>, PassRefPtr<ErrorCallback>, DirectoryReaderBase*, const String& basePath); + static PassOwnPtr<EntriesCallbacks> create(PassRefPtr<EntriesCallback>, PassRefPtr<ErrorCallback>, PassRefPtr<DirectoryReaderBase>, const String& basePath); virtual void didReadDirectoryEntry(const String& name, bool isDirectory); virtual void didReadDirectoryEntries(bool hasMore); private: - EntriesCallbacks(PassRefPtr<EntriesCallback>, PassRefPtr<ErrorCallback>, DirectoryReaderBase*, const String& basePath); + EntriesCallbacks(PassRefPtr<EntriesCallback>, PassRefPtr<ErrorCallback>, PassRefPtr<DirectoryReaderBase>, const String& basePath); RefPtr<EntriesCallback> m_successCallback; - DirectoryReaderBase* m_directoryReader; + RefPtr<DirectoryReaderBase> m_directoryReader; String m_basePath; RefPtr<EntryArray> m_entries; }; @@ -125,7 +126,7 @@ private: class MetadataCallbacks : public FileSystemCallbacksBase { public: static PassOwnPtr<MetadataCallbacks> create(PassRefPtr<MetadataCallback>, PassRefPtr<ErrorCallback>); - virtual void didReadMetadata(double modificationTime); + virtual void didReadMetadata(const FileMetadata&); private: MetadataCallbacks(PassRefPtr<MetadataCallback>, PassRefPtr<ErrorCallback>); |