| 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_DOWNLOAD_STATUS_UPDATER_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 | 13 |
| 14 class DownloadStatusUpdaterDelegate; | 14 class DownloadStatusUpdaterDelegate; |
| 15 | 15 |
| 16 // Keeps track of download progress for the entire browser. | 16 // Keeps track of download progress for the entire browser. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Returns the number of downloads that are in progress. | 38 // Returns the number of downloads that are in progress. |
| 39 int64 GetInProgressDownloadCount(); | 39 int64 GetInProgressDownloadCount(); |
| 40 | 40 |
| 41 typedef std::set<DownloadStatusUpdaterDelegate*> DelegateSet; | 41 typedef std::set<DownloadStatusUpdaterDelegate*> DelegateSet; |
| 42 DelegateSet delegates_; | 42 DelegateSet delegates_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(DownloadStatusUpdater); | 44 DISALLOW_COPY_AND_ASSIGN(DownloadStatusUpdater); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ | 47 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ |
| OLD | NEW |