Chromium Code Reviews| Index: Source/core/clipboard/DraggedIsolatedFileSystem.h |
| diff --git a/Source/modules/filesystem/DataTransferItemFileSystem.h b/Source/core/clipboard/DraggedIsolatedFileSystem.h |
| similarity index 73% |
| copy from Source/modules/filesystem/DataTransferItemFileSystem.h |
| copy to Source/core/clipboard/DraggedIsolatedFileSystem.h |
| index 7d9ebacfb417b9e3a7d25163a41f84b8a9ee421a..d0a398b0cd5ff6c756aabd4f1915352780d03532 100644 |
| --- a/Source/modules/filesystem/DataTransferItemFileSystem.h |
| +++ b/Source/core/clipboard/DraggedIsolatedFileSystem.h |
| @@ -28,26 +28,30 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef DataTransferItemFileSystem_h |
| -#define DataTransferItemFileSystem_h |
| +#ifndef DraggedIsolatedFileSystem_h |
| +#define DraggedIsolatedFileSystem_h |
| +#include "core/clipboard/DataObject.h" |
| #include "platform/heap/Handle.h" |
| +#include "wtf/Forward.h" |
| +#include "wtf/Noncopyable.h" |
| +#include "wtf/text/WTFString.h" |
|
tkent
2015/02/23 23:40:41
This is unnecessary because this file includes wtf
tasak
2015/02/25 08:15:24
Done.
|
| namespace blink { |
| -class DataTransferItem; |
| -class Entry; |
| -class ExecutionContext; |
| - |
| -class DataTransferItemFileSystem { |
| +class DraggedIsolatedFileSystem { |
| + WTF_MAKE_NONCOPYABLE(DraggedIsolatedFileSystem); |
| public: |
| - static Entry* webkitGetAsEntry(ExecutionContext*, DataTransferItem&); |
| + DraggedIsolatedFileSystem() { } |
| + virtual ~DraggedIsolatedFileSystem() { } |
| + |
| + static void init(void (*)(DataObject*, const String&)); |
|
tkent
2015/02/23 23:40:41
I recommend to add |using fileSystemIdPreparationC
tasak
2015/02/25 08:15:24
Done.
|
| + static void prepareForDataObject(DataObject*, const String& filesystemId); |
| private: |
| - DataTransferItemFileSystem(); |
| - ~DataTransferItemFileSystem(); |
| + static void (*m_prepareMethod)(DataObject*, const String&); |
|
tkent
2015/02/23 23:40:41
m_prepareMethod -> s_prepareCallback
'method' usu
tasak
2015/02/25 08:15:24
Done.
|
| }; |
| } // namespace blink |
| -#endif // DataTransferItemFileSystem_h |
| +#endif // DraggedIsolatedFileSystem_h |