| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 public: | 105 public: |
| 106 static PassOwnPtr<AsyncFileSystemCallbacks> create(EntriesCallback*, ErrorCa
llback*, ExecutionContext*, DirectoryReaderBase*, const String& basePath); | 106 static PassOwnPtr<AsyncFileSystemCallbacks> create(EntriesCallback*, ErrorCa
llback*, ExecutionContext*, DirectoryReaderBase*, const String& basePath); |
| 107 virtual void didReadDirectoryEntry(const String& name, bool isDirectory) ove
rride; | 107 virtual void didReadDirectoryEntry(const String& name, bool isDirectory) ove
rride; |
| 108 virtual void didReadDirectoryEntries(bool hasMore) override; | 108 virtual void didReadDirectoryEntries(bool hasMore) override; |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 EntriesCallbacks(EntriesCallback*, ErrorCallback*, ExecutionContext*, Direct
oryReaderBase*, const String& basePath); | 111 EntriesCallbacks(EntriesCallback*, ErrorCallback*, ExecutionContext*, Direct
oryReaderBase*, const String& basePath); |
| 112 Persistent<EntriesCallback> m_successCallback; | 112 Persistent<EntriesCallback> m_successCallback; |
| 113 Persistent<DirectoryReaderBase> m_directoryReader; | 113 Persistent<DirectoryReaderBase> m_directoryReader; |
| 114 String m_basePath; | 114 String m_basePath; |
| 115 PersistentHeapVector<Member<Entry> > m_entries; | 115 PersistentHeapVector<Member<Entry>> m_entries; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 class FileSystemCallbacks final : public FileSystemCallbacksBase { | 118 class FileSystemCallbacks final : public FileSystemCallbacksBase { |
| 119 public: | 119 public: |
| 120 static PassOwnPtr<AsyncFileSystemCallbacks> create(FileSystemCallback*, Erro
rCallback*, ExecutionContext*, FileSystemType); | 120 static PassOwnPtr<AsyncFileSystemCallbacks> create(FileSystemCallback*, Erro
rCallback*, ExecutionContext*, FileSystemType); |
| 121 virtual void didOpenFileSystem(const String& name, const KURL& rootURL) over
ride; | 121 virtual void didOpenFileSystem(const String& name, const KURL& rootURL) over
ride; |
| 122 | 122 |
| 123 private: | 123 private: |
| 124 FileSystemCallbacks(FileSystemCallback*, ErrorCallback*, ExecutionContext*,
FileSystemType); | 124 FileSystemCallbacks(FileSystemCallback*, ErrorCallback*, ExecutionContext*,
FileSystemType); |
| 125 Persistent<FileSystemCallback> m_successCallback; | 125 Persistent<FileSystemCallback> m_successCallback; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 virtual void didSucceed() override; | 175 virtual void didSucceed() override; |
| 176 | 176 |
| 177 private: | 177 private: |
| 178 VoidCallbacks(VoidCallback*, ErrorCallback*, ExecutionContext*, DOMFileSyste
mBase*); | 178 VoidCallbacks(VoidCallback*, ErrorCallback*, ExecutionContext*, DOMFileSyste
mBase*); |
| 179 Persistent<VoidCallback> m_successCallback; | 179 Persistent<VoidCallback> m_successCallback; |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 } // namespace blink | 182 } // namespace blink |
| 183 | 183 |
| 184 #endif // FileSystemCallbacks_h | 184 #endif // FileSystemCallbacks_h |
| OLD | NEW |