OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/android/download/chrome_duplicate_download_infobar_dele
gate.h" | 5 #include "chrome/browser/android/download/chrome_duplicate_download_infobar_dele
gate.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/android/path_utils.h" | 9 #include "base/android/path_utils.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/strings/stringprintf.h" | |
12 #include "chrome/browser/android/download/download_controller.h" | 11 #include "chrome/browser/android/download/download_controller.h" |
13 #include "chrome/browser/download/download_path_reservation_tracker.h" | 12 #include "chrome/browser/download/download_path_reservation_tracker.h" |
14 #include "chrome/browser/infobars/infobar_service.h" | 13 #include "chrome/browser/infobars/infobar_service.h" |
15 #include "chrome/browser/ui/android/infobars/duplicate_download_infobar.h" | 14 #include "chrome/browser/ui/android/infobars/duplicate_download_infobar.h" |
16 #include "components/infobars/core/infobar.h" | 15 #include "components/infobars/core/infobar.h" |
17 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void ChromeDuplicateDownloadInfoBarDelegate::InfoBarDismissed() { | 109 void ChromeDuplicateDownloadInfoBarDelegate::InfoBarDismissed() { |
111 Cancel(); | 110 Cancel(); |
112 } | 111 } |
113 | 112 |
114 bool ChromeDuplicateDownloadInfoBarDelegate::IsOffTheRecord() const { | 113 bool ChromeDuplicateDownloadInfoBarDelegate::IsOffTheRecord() const { |
115 return is_off_the_record_; | 114 return is_off_the_record_; |
116 } | 115 } |
117 | 116 |
118 } // namespace android | 117 } // namespace android |
119 } // namespace chrome | 118 } // namespace chrome |
OLD | NEW |