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

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

Issue 10805020: Kill DownloadItem::IsOtr() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 8 years, 4 months 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
« no previous file with comments | « chrome/browser/download/download_history.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 // Helper function for download views to use when acting as a drag source for a 124 // Helper function for download views to use when acting as a drag source for a
125 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view| 125 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view|
126 // is only required for Mac OS X, elsewhere it can be NULL. 126 // is only required for Mac OS X, elsewhere it can be NULL.
127 void DragDownload(const content::DownloadItem* download, 127 void DragDownload(const content::DownloadItem* download,
128 gfx::Image* icon, 128 gfx::Image* icon,
129 gfx::NativeView view); 129 gfx::NativeView view);
130 130
131 // Helpers --------------------------------------------------------------------- 131 // Helpers ---------------------------------------------------------------------
132 132
133 // Creates a representation of a download in a format that the downloads
134 // HTML page can understand.
135 base::DictionaryValue* CreateDownloadItemValue(content::DownloadItem* download,
136 int id);
137
138 // Get the localized status text for an in-progress download. 133 // Get the localized status text for an in-progress download.
139 string16 GetProgressStatusText(content::DownloadItem* download); 134 string16 GetProgressStatusText(content::DownloadItem* download);
140 135
141 // Returns a .crdownload intermediate path for the |suggested_path|. 136 // Returns a .crdownload intermediate path for the |suggested_path|.
142 FilePath GetCrDownloadPath(const FilePath& suggested_path); 137 FilePath GetCrDownloadPath(const FilePath& suggested_path);
143 138
144 // Check whether we can do the saving page operation for the specified URL. 139 // Check whether we can do the saving page operation for the specified URL.
145 bool IsSavableURL(const GURL& url); 140 bool IsSavableURL(const GURL& url);
146 141
147 // Record the total number of items and the number of in-progress items showing 142 // Record the total number of items and the number of in-progress items showing
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 184
190 // Increment one of the above counts. 185 // Increment one of the above counts.
191 void RecordDownloadCount(ChromeDownloadCountTypes type); 186 void RecordDownloadCount(ChromeDownloadCountTypes type);
192 187
193 // Record initiation of a download from a specific source. 188 // Record initiation of a download from a specific source.
194 void RecordDownloadSource(ChromeDownloadSource source); 189 void RecordDownloadSource(ChromeDownloadSource source);
195 190
196 } // namespace download_util 191 } // namespace download_util
197 192
198 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ 193 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_history.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698