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/hash_tables.h" | 10 #include "base/hash_tables.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/task.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/safe_browsing/download_protection_service.h" | 14 #include "chrome/browser/safe_browsing/download_protection_service.h" |
15 #include "content/public/browser/download_manager_delegate.h" | 15 #include "content/public/browser/download_manager_delegate.h" |
16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
18 | 18 |
19 class CrxInstaller; | 19 class CrxInstaller; |
20 class DownloadHistory; | 20 class DownloadHistory; |
21 class DownloadPrefs; | 21 class DownloadPrefs; |
22 class Profile; | 22 class Profile; |
23 struct DownloadStateInfo; | 23 struct DownloadStateInfo; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Maps from pending extension installations to DownloadItem IDs. | 154 // Maps from pending extension installations to DownloadItem IDs. |
155 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; | 155 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; |
156 CrxInstallerMap crx_installers_; | 156 CrxInstallerMap crx_installers_; |
157 | 157 |
158 content::NotificationRegistrar registrar_; | 158 content::NotificationRegistrar registrar_; |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); | 160 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); |
161 }; | 161 }; |
162 | 162 |
163 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 163 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |