#include "chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.h"
#include <optional>
#include "base/containers/contains.h"
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/thread_pool.h"
#include "chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h"
#include "components/enterprise/common/files_scan_data.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_view_delegate.h"
#include "content/public/common/drop_data.h"
#include "ui/base/clipboard/file_info.h"
namespace {
void CompletionCallback(
content::DropData drop_data,
std::unique_ptr<enterprise_connectors::FilesScanData> files_scan_data,
content::WebContentsViewDelegate::DropCompletionCallback callback,
const enterprise_connectors::ContentAnalysisDelegate::Data& data,
enterprise_connectors::ContentAnalysisDelegate::Result& result) { … }
class HandleDropScanData : public content::WebContentsObserver { … };
}
void HandleOnPerformingDrop(
content::WebContents* web_contents,
content::DropData drop_data,
content::WebContentsViewDelegate::DropCompletionCallback callback) { … }