| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |