blob: 38664c79ea41fa091c493395ada05a39213ea406 [file] [log] [blame]
Avi Drissman4e1b7bc32022-09-15 14:03:501// Copyright 2013 The Chromium Authors
[email protected]98d6f152011-09-29 19:35:512// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]de7d61ff2013-08-20 11:30:415#include "content/shell/browser/shell_download_manager_delegate.h"
[email protected]98d6f152011-09-29 19:35:516
David Vallet11683522017-08-23 03:20:467#include <string>
8
Xiaohan Wangbd084422022-01-15 18:47:519#include "build/build_config.h"
10
11#if BUILDFLAG(IS_WIN)
[email protected]5c12f4a2011-09-30 21:59:0412#include <windows.h>
13#include <commdlg.h>
14#endif
15
Hans Wennborg0917de892020-04-28 20:21:1516#include "base/check_op.h"
[email protected]e6669302013-03-25 14:31:1617#include "base/command_line.h"
Lei Zhangae2ff1e2021-05-25 17:29:3918#include "base/cxx17_backports.h"
thestigb7aad54f2014-09-05 18:25:3919#include "base/files/file_util.h"
Avi Drissmanadac21992023-01-11 23:46:3920#include "base/functional/bind.h"
Hans Wennborg0917de892020-04-28 20:21:1521#include "base/notreached.h"
[email protected]21aa99682013-06-11 07:17:0122#include "base/strings/string_util.h"
[email protected]74ebfb12013-06-07 20:48:0023#include "base/strings/utf_string_conversions.h"
Gabriel Charette5e2e72042020-02-25 01:04:0124#include "base/task/thread_pool.h"
[email protected]ccb797302011-12-15 16:55:1125#include "content/public/browser/browser_context.h"
Eric Seckler8652dcd52018-09-20 10:42:2826#include "content/public/browser/browser_task_traits.h"
[email protected]c38831a12011-10-28 12:44:4927#include "content/public/browser/browser_thread.h"
Min Qina9f487872018-02-09 20:43:2328#include "content/public/browser/download_item_utils.h"
[email protected]e582fdd2011-12-20 16:48:1729#include "content/public/browser/download_manager.h"
[email protected]0b659b32012-03-26 21:29:32