Chromium Code Reviews| 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 // Download utilities. | 5 // Download utilities. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
| 8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 181 | 181 |
| 182 CHROME_DOWNLOAD_SOURCE_LAST_ENTRY, | 182 CHROME_DOWNLOAD_SOURCE_LAST_ENTRY, |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 // Increment one of the above counts. | 185 // Increment one of the above counts. |
| 186 void RecordDownloadCount(ChromeDownloadCountTypes type); | 186 void RecordDownloadCount(ChromeDownloadCountTypes type); |
| 187 | 187 |
| 188 // Record initiation of a download from a specific source. | 188 // Record initiation of a download from a specific source. |
| 189 void RecordDownloadSource(ChromeDownloadSource source); | 189 void RecordDownloadSource(ChromeDownloadSource source); |
| 190 | 190 |
| 191 // Check whether a download should be displayed in the download shelf. | |
| 192 bool GetShouldShowInShelf(content::DownloadItem* item); | |
|
Nico
2012/09/25 03:07:18
nit: getshould sounds a bit awkward. just shouldsh
Steve McKay
2012/09/25 18:56:04
A thought about naming. Whether the shelf should s
sail
2012/10/02 18:57:01
Done.
Removed code.
sail
2012/10/02 18:57:01
I added a DownloadItem::ShouldShowInDownloadsUI()
Steve McKay
2012/10/02 19:19:22
You missed my point about finding the intrinsic pr
sail
2012/10/02 20:24:38
Sounds good. Renamed to DownloadItem::SetIsHiddenD
| |
| 193 | |
| 194 // Set whether a download should be displayed in the download shelf. | |
| 195 void SetShouldShowInShelf(content::DownloadItem* item, bool should_show); | |
| 196 | |
| 191 } // namespace download_util | 197 } // namespace download_util |
| 192 | 198 |
| 193 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 199 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
| OLD | NEW |