1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DROP_DATA_UTIL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DROP_DATA_UTIL_H_ 7 8 #include <vector> 9 10 #include "content/common/content_export.h" 11 #include "content/public/common/drop_data.h" 12 #include "third_party/blink/public/mojom/page/drag.mojom-forward.h" 13 14 namespace content { 15 class NativeFileSystemManagerImpl; 16 17 CONTENT_EXPORT 18 blink::mojom::DragDataPtr DropDataToDragData( 19 const DropData& drop_data, 20 NativeFileSystemManagerImpl* native_file_system_manager, 21 int child_id); 22 23 CONTENT_EXPORT 24 blink::mojom::DragDataPtr DropMetaDataToDragData( 25 const std::vector<DropData::Metadata>& drop_meta_data); 26 27 CONTENT_EXPORT DropData 28 DragDataToDropData(const blink::mojom::DragData& drag_data); 29 30 } // namespace content 31 32 #endif // #define CONTENT_BROWSER_RENDERER_HOST_DROP_DATA_UTIL_H_ 33