download_file_info.h 840 B

12345678910111213141516171819202122232425262728
  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. #ifndef UI_BASE_DRAGDROP_DOWNLOAD_FILE_INFO_H_
  5. #define UI_BASE_DRAGDROP_DOWNLOAD_FILE_INFO_H_
  6. #include <memory>
  7. #include "base/component_export.h"
  8. #include "base/files/file_path.h"
  9. #include "ui/base/dragdrop/download_file_interface.h"
  10. namespace ui {
  11. // Encapsulates the info about a file to be downloaded.
  12. struct COMPONENT_EXPORT(UI_BASE_DATA_EXCHANGE) DownloadFileInfo {
  13. DownloadFileInfo(const base::FilePath& filename,
  14. std::unique_ptr<DownloadFileProvider> downloader);
  15. ~DownloadFileInfo();
  16. base::FilePath filename;
  17. std::unique_ptr<DownloadFileProvider> downloader;
  18. };
  19. } // namespace ui
  20. #endif // UI_BASE_DRAGDROP_DOWNLOAD_FILE_INFO_H_