Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors |
[email protected] | 98d6f15 | 2011-09-29 19:35:51 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 5 | #include "content/shell/browser/shell_download_manager_delegate.h" |
[email protected] | 98d6f15 | 2011-09-29 19:35:51 | [diff] [blame] | 6 | |
David Vallet | 1168352 | 2017-08-23 03:20:46 | [diff] [blame] | 7 | #include <string> |
8 | |||||
Xiaohan Wang | bd08442 | 2022-01-15 18:47:51 | [diff] [blame] | 9 | #include "build/build_config.h" |
10 | |||||
11 | #if BUILDFLAG(IS_WIN) | ||||
[email protected] | 5c12f4a | 2011-09-30 21:59:04 | [diff] [blame] | 12 | #include <windows.h> |
13 | #include <commdlg.h> | ||||
14 | #endif | ||||
15 | |||||
Hans Wennborg | 0917de89 | 2020-04-28 20:21:15 | [diff] [blame] | 16 | #include "base/check_op.h" |
[email protected] | e666930 | 2013-03-25 14:31:16 | [diff] [blame] | 17 | #include "base/command_line.h" |
Lei Zhang | ae2ff1e | 2021-05-25 17:29:39 | [diff] [blame] | 18 | #include "base/cxx17_backports.h" |
thestig | b7aad54f | 2014-09-05 18:25:39 | [diff] [blame] | 19 | #include "base/files/file_util.h" |
Avi Drissman | adac2199 | 2023-01-11 23:46:39 | [diff] [blame] | 20 | #include "base/functional/bind.h" |
Hans Wennborg | 0917de89 | 2020-04-28 20:21:15 | [diff] [blame] | 21 | #include "base/notreached.h" |
[email protected] | 21aa9968 | 2013-06-11 07:17:01 | [diff] [blame] | 22 | #include "base/strings/string_util.h" |
[email protected] | 74ebfb1 | 2013-06-07 20:48:00 | [diff] [blame] | 23 | #include "base/strings/utf_string_conversions.h" |
Gabriel Charette | 5e2e7204 | 2020-02-25 01:04:01 | [diff] [blame] | 24 | #include "base/task/thread_pool.h" |
[email protected] | ccb79730 | 2011-12-15 16:55:11 | [diff] [blame] | 25 | #include "content/public/browser/browser_context.h" |
Eric Seckler | 8652dcd5 | 2018-09-20 10:42:28 | [diff] [blame] | 26 | #include "content/public/browser/browser_task_traits.h" |
[email protected] | c38831a1 | 2011-10-28 12:44:49 | [diff] [blame] | 27 | #include "content/public/browser/browser_thread.h" |
Min Qin | a9f48787 | 2018-02-09 20:43:23 | [diff] [blame] | 28 | #include "content/public/browser/download_item_utils.h" |
[email protected] | e582fdd | 2011-12-20 16:48:17 | [diff] [blame] | 29 | #include "content/public/browser/download_manager.h" |
[email protected] | 0b659b3 | 2012-03-26 21:29:32 | [diff] [blame] |