Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: chrome/browser/download/download_util.h

Issue 11419169: Use DownloadItemModel for storing chrome/ specific UI data for DownloadItems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 CHROME_DOWNLOAD_SOURCE_LAST_ENTRY, 192 CHROME_DOWNLOAD_SOURCE_LAST_ENTRY,
193 }; 193 };
194 194
195 // Increment one of the above counts. 195 // Increment one of the above counts.
196 void RecordDownloadCount(ChromeDownloadCountTypes type); 196 void RecordDownloadCount(ChromeDownloadCountTypes type);
197 197
198 // Record initiation of a download from a specific source. 198 // Record initiation of a download from a specific source.
199 void RecordDownloadSource(ChromeDownloadSource source); 199 void RecordDownloadSource(ChromeDownloadSource source);
200 200
201 // Check whether a download should be displayed in the download shelf.
202 bool ShouldShowInShelf(content::DownloadItem* item);
203
204 // Set whether a download should be displayed in the download shelf.
205 void SetShouldShowInShelf(content::DownloadItem* item, bool should_show);
206
207 } // namespace download_util 201 } // namespace download_util
208 202
209 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ 203 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698