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

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

Issue 2877008: Rename the download to its final name only after the download is finished (Closed)
Patch Set: rebase Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <set> 10 #include <set>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 int render_process_host_id, 171 int render_process_host_id,
172 int render_view_id, 172 int render_view_id,
173 URLRequestContextGetter* request_context_getter); 173 URLRequestContextGetter* request_context_getter);
174 174
175 // Tells the resource dispatcher host to cancel a download request. 175 // Tells the resource dispatcher host to cancel a download request.
176 // Must be called on the IO thread. 176 // Must be called on the IO thread.
177 void CancelDownloadRequest(ResourceDispatcherHost* rdh, 177 void CancelDownloadRequest(ResourceDispatcherHost* rdh,
178 int render_process_id, 178 int render_process_id,
179 int request_id); 179 int request_id);
180 180
181 // Same as GetUniquePathNumber, except that it also checks the existence
182 // of its .crdownload intermediate path.
183 // If |path| does not exist, 0 is returned. If it fails to find such
184 // a number, -1 is returned.
185 int GetUniquePathNumberWithCrDownload(const FilePath& path);
186
187 // Returns a .crdownload intermediate path for the |suggested_path|.
188 FilePath GetCrDownloadPath(const FilePath& suggested_path);
181 189
182 } // namespace download_util 190 } // namespace download_util
183 191
184 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ 192 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698