[email protected] | 87ac156 | 2014-02-26 17:50:46 | [diff] [blame] | 1 | // Copyright 2014 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 | #include "chrome/browser/download/download_permission_request.h" | ||||
6 | |||||
[email protected] | af39f00 | 2014-08-22 10:18:18 | [diff] [blame] | 7 | #include "chrome/grit/generated_resources.h" |
[email protected] | 87ac156 | 2014-02-26 17:50:46 | [diff] [blame] | 8 | #include "ui/base/l10n/l10n_util.h" |
9 | |||||
timloh | 178801f | 2017-06-13 04:17:58 | [diff] [blame] | 10 | #if defined(OS_ANDROID) |
11 | #include "chrome/browser/android/android_theme_resources.h" | ||||
Mugdha Lakhani | 6b39f5fd | 2018-11-23 11:19:01 | [diff] [blame] | 12 | #include "components/url_formatter/elide_url.h" |
13 | #include "url/origin.h" | ||||
timloh | 178801f | 2017-06-13 04:17:58 | [diff] [blame] | 14 | #else |
Mugdha Lakhani | b676216 | 2020-03-30 10:23:25 | [diff] [blame] | 15 | #include "components/vector_icons/vector_icons.h" |
timloh | 178801f | 2017-06-13 04:17:58 | [diff] [blame] | 16 | #endif |
17 | |||||
[email protected] | 87ac156 | 2014-02-26 17:50:46 | [diff] [blame] | 18 | DownloadPermissionRequest::DownloadPermissionRequest( |
Min Qin | 357184a | 2019-06-25 16:31:44 | [diff] [blame] | 19 | base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host, |
Min Qin | 5f2f6a1 | 2019-08-12 21:50:48 | [diff] [blame] | 20 | const url::Origin& request_origin) |
Min Qin | 357184a | 2019-06-25 16:31:44 | [diff] [blame] | 21 | : host_(host), request_origin_(request_origin) {} |
[email protected] | 87ac156 | 2014-02-26 17:50:46 | [diff] [blame] | 22 | |
23 | DownloadPermissionRequest::~DownloadPermissionRequest() {} | ||||
24 | |||||
Clark DuVall |