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

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

Issue 2582463002: Fix webkitGetEntry for non-native files. (Closed)
Patch Set: . Created 4 years 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/DraggedIsolatedFileSystemImpl.h
diff --git a/third_party/WebKit/Source/modules/filesystem/DraggedIsolatedFileSystemImpl.h b/third_party/WebKit/Source/modules/filesystem/DraggedIsolatedFileSystemImpl.h
index 33afbac895bcc4cadb2709460bc250d918852e0d..b05ae500d8dd4120976a099e4ca56df3b9cee304 100644
--- a/third_party/WebKit/Source/modules/filesystem/DraggedIsolatedFileSystemImpl.h
+++ b/third_party/WebKit/Source/modules/filesystem/DraggedIsolatedFileSystemImpl.h
@@ -34,6 +34,7 @@
#include "core/clipboard/DataObject.h"
#include "core/clipboard/DraggedIsolatedFileSystem.h"
#include "platform/heap/Handle.h"
+#include "platform/heap/HeapAllocator.h"
#include "wtf/Forward.h"
#include "wtf/text/WTFString.h"
@@ -48,24 +49,21 @@ class DraggedIsolatedFileSystemImpl final
USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystemImpl);
public:
- static DraggedIsolatedFileSystemImpl* create(DataObject& host,
- const String& filesystemId) {
- return new DraggedIsolatedFileSystemImpl(host, filesystemId);
- }
-
- static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*);
+ static DOMFileSystem* getDOMFileSystem(DataObject* host,
+ ExecutionContext*,
+ const DataObjectItem&);
static const char* supplementName();
static DraggedIsolatedFileSystemImpl* from(DataObject*);
DECLARE_TRACE();
- static void prepareForDataObject(DataObject*, const String& filesystemId);
+ static void prepareForDataObject(DataObject*);
private:
- DraggedIsolatedFileSystemImpl(DataObject& host, const String& filesystemId);
+ DraggedIsolatedFileSystemImpl() = default;
- Member<DOMFileSystem> m_filesystem;
+ HeapHashMap<String, Member<DOMFileSystem>> m_filesystems;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698