Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(949)

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileSystemSync.h

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/filesystem/FileSystemSync.h
diff --git a/third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.h b/third_party/WebKit/Source/modules/filesystem/FileSystemSync.h
similarity index 64%
rename from third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.h
rename to third_party/WebKit/Source/modules/filesystem/FileSystemSync.h
index a54f3d82c46553a5baad8fdb245fb28b8ffc8cb2..64e4026a8ba06eb00ff60c1e06e77aaeab63ab4d 100644
--- a/third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.h
+++ b/third_party/WebKit/Source/modules/filesystem/FileSystemSync.h
@@ -28,54 +28,53 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMFileSystemSync_h
-#define DOMFileSystemSync_h
+#ifndef FileSystemSync_h
+#define FileSystemSync_h
#include "bindings/core/v8/ScriptWrappable.h"
-#include "modules/filesystem/DOMFileSystemBase.h"
+#include "modules/filesystem/FileSystemBase.h"
#include "platform/heap/Handle.h"
namespace blink {
-class DirectoryEntrySync;
+class ExceptionState;
class File;
-class FileEntrySync;
+class FileSystemDirectoryEntrySync;
+class FileSystemFileEntrySync;
class FileWriterSync;
-class ExceptionState;
-class DOMFileSystemSync final : public DOMFileSystemBase,
- public ScriptWrappable {
+class FileSystemSync final : public FileSystemBase, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static DOMFileSystemSync* create(ExecutionContext* context,
- const String& name,
- FileSystemType type,
- const KURL& rootURL) {
- return new DOMFileSystemSync(context, name, type, rootURL);
+ static FileSystemSync* create(ExecutionContext* context,
+ const String& name,
+ FileSystemType type,
+ const KURL& rootURL) {
+ return new FileSystemSync(context, name, type, rootURL);
}
- static DOMFileSystemSync* create(DOMFileSystemBase*);
+ static FileSystemSync* create(FileSystemBase*);
- ~DOMFileSystemSync() override;
+ ~FileSystemSync() override;
void reportError(ErrorCallbackBase*, FileError::ErrorCode) override;
- DirectoryEntrySync* root();
+ FileSystemDirectoryEntrySync* root();
- File* createFile(const FileEntrySync*, ExceptionState&);
- FileWriterSync* createWriter(const FileEntrySync*, ExceptionState&);
+ File* createFile(const FileSystemFileEntrySync*, ExceptionState&);
+ FileWriterSync* createWriter(const FileSystemFileEntrySync*, ExceptionState&);
DECLARE_VIRTUAL_TRACE();
private:
- DOMFileSystemSync(ExecutionContext*,
- const String& name,
- FileSystemType,
- const KURL& rootURL);
- Member<DirectoryEntrySync> m_rootEntry;
+ FileSystemSync(ExecutionContext*,
+ const String& name,
+ FileSystemType,
+ const KURL& rootURL);
+ Member<FileSystemDirectoryEntrySync> m_rootEntry;
};
} // namespace blink
-#endif // DOMFileSystemSync_h
+#endif // FileSystemSync_h

Powered by Google App Engine
This is Rietveld 408576698