| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class Profile; | 28 class Profile; |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 class DownloadManager; | 31 class DownloadManager; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace extensions { | 34 namespace extensions { |
| 35 class CrxInstaller; | 35 class CrxInstaller; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace user_prefs { | |
| 39 class PrefRegistrySyncable; | |
| 40 } | |
| 41 | |
| 42 // This is the Chrome side helper for the download system. | 38 // This is the Chrome side helper for the download system. |
| 43 class ChromeDownloadManagerDelegate | 39 class ChromeDownloadManagerDelegate |
| 44 : public content::DownloadManagerDelegate, | 40 : public content::DownloadManagerDelegate, |
| 45 public content::NotificationObserver, | 41 public content::NotificationObserver, |
| 46 public DownloadTargetDeterminerDelegate { | 42 public DownloadTargetDeterminerDelegate { |
| 47 public: | 43 public: |
| 48 explicit ChromeDownloadManagerDelegate(Profile* profile); | 44 explicit ChromeDownloadManagerDelegate(Profile* profile); |
| 49 ~ChromeDownloadManagerDelegate() override; | 45 ~ChromeDownloadManagerDelegate() override; |
| 50 | 46 |
| 51 // Should be called before the first call to ShouldCompleteDownload() to | 47 // Should be called before the first call to ShouldCompleteDownload() to |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 #endif | 170 #endif |
| 175 | 171 |
| 176 content::NotificationRegistrar registrar_; | 172 content::NotificationRegistrar registrar_; |
| 177 | 173 |
| 178 base::WeakPtrFactory<ChromeDownloadManagerDelegate> weak_ptr_factory_; | 174 base::WeakPtrFactory<ChromeDownloadManagerDelegate> weak_ptr_factory_; |
| 179 | 175 |
| 180 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); | 176 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); |
| 181 }; | 177 }; |
| 182 | 178 |
| 183 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 179 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
| OLD | NEW |