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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DraggedIsolatedFileSystemImpl.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 21 matching lines...) Expand all
32 #define DraggedIsolatedFileSystemImpl_h 32 #define DraggedIsolatedFileSystemImpl_h
33 33
34 #include "core/clipboard/DataObject.h" 34 #include "core/clipboard/DataObject.h"
35 #include "core/clipboard/DraggedIsolatedFileSystem.h" 35 #include "core/clipboard/DraggedIsolatedFileSystem.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "wtf/Forward.h" 37 #include "wtf/Forward.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class DOMFileSystem; 42 class FileSystem;
43 43
44 class DraggedIsolatedFileSystemImpl final 44 class DraggedIsolatedFileSystemImpl final
45 : public GarbageCollectedFinalized<DraggedIsolatedFileSystemImpl>, 45 : public GarbageCollectedFinalized<DraggedIsolatedFileSystemImpl>,
46 public DraggedIsolatedFileSystem, 46 public DraggedIsolatedFileSystem,
47 public Supplement<DataObject> { 47 public Supplement<DataObject> {
48 USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystemImpl); 48 USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystemImpl);
49 49
50 public: 50 public:
51 static DraggedIsolatedFileSystemImpl* create(DataObject& host, 51 static DraggedIsolatedFileSystemImpl* create(DataObject& host,
52 const String& filesystemId) { 52 const String& filesystemId) {
53 return new DraggedIsolatedFileSystemImpl(host, filesystemId); 53 return new DraggedIsolatedFileSystemImpl(host, filesystemId);
54 } 54 }
55 55
56 static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*); 56 static FileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*);
57 57
58 static const char* supplementName(); 58 static const char* supplementName();
59 static DraggedIsolatedFileSystemImpl* from(DataObject*); 59 static DraggedIsolatedFileSystemImpl* from(DataObject*);
60 60
61 DECLARE_TRACE(); 61 DECLARE_TRACE();
62 62
63 static void prepareForDataObject(DataObject*, const String& filesystemId); 63 static void prepareForDataObject(DataObject*, const String& filesystemId);
64 64
65 private: 65 private:
66 DraggedIsolatedFileSystemImpl(DataObject& host, const String& filesystemId); 66 DraggedIsolatedFileSystemImpl(DataObject& host, const String& filesystemId);
67 67
68 Member<DOMFileSystem> m_filesystem; 68 Member<FileSystem> m_filesystem;
69 }; 69 };
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // DraggedIsolatedFileSystemImpl_h 73 #endif // DraggedIsolatedFileSystemImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698