OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "chrome/browser/download/download_manager_delegate.h" | 12 #include "content/browser/download/download_manager_delegate.h" |
13 | 13 |
14 class DownloadItem; | 14 class DownloadItem; |
15 class DownloadManager; | 15 class DownloadManager; |
16 struct DownloadStateInfo; | 16 struct DownloadStateInfo; |
17 | 17 |
18 // Browser's download manager: manages all downloads and destination view. | 18 // Browser's download manager: manages all downloads and destination view. |
19 class ChromeDownloadManagerDelegate | 19 class ChromeDownloadManagerDelegate |
20 : public base::RefCountedThreadSafe<ChromeDownloadManagerDelegate>, | 20 : public base::RefCountedThreadSafe<ChromeDownloadManagerDelegate>, |
21 public DownloadManagerDelegate { | 21 public DownloadManagerDelegate { |
22 public: | 22 public: |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 bool IsDangerousFile(const DownloadItem& download, | 68 bool IsDangerousFile(const DownloadItem& download, |
69 const DownloadStateInfo& state, | 69 const DownloadStateInfo& state, |
70 bool visited_referrer_before); | 70 bool visited_referrer_before); |
71 | 71 |
72 scoped_refptr<DownloadManager> download_manager_; | 72 scoped_refptr<DownloadManager> download_manager_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); | 74 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); |
75 }; | 75 }; |
76 | 76 |
77 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 77 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |