| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include <set> | |
| 12 #include <string> | 11 #include <string> |
| 13 | 12 |
| 14 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 15 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 16 #include "gfx/native_widget_types.h" | 15 #include "gfx/native_widget_types.h" |
| 17 | 16 |
| 18 #if defined(TOOLKIT_VIEWS) | 17 #if defined(TOOLKIT_VIEWS) |
| 19 #include "views/view.h" | 18 #include "views/view.h" |
| 20 #endif | 19 #endif |
| 21 | 20 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // If |path| does not exist, 0 is returned. If it fails to find such | 206 // If |path| does not exist, 0 is returned. If it fails to find such |
| 208 // a number, -1 is returned. | 207 // a number, -1 is returned. |
| 209 int GetUniquePathNumberWithCrDownload(const FilePath& path); | 208 int GetUniquePathNumberWithCrDownload(const FilePath& path); |
| 210 | 209 |
| 211 // Returns a .crdownload intermediate path for the |suggested_path|. | 210 // Returns a .crdownload intermediate path for the |suggested_path|. |
| 212 FilePath GetCrDownloadPath(const FilePath& suggested_path); | 211 FilePath GetCrDownloadPath(const FilePath& suggested_path); |
| 213 | 212 |
| 214 } // namespace download_util | 213 } // namespace download_util |
| 215 | 214 |
| 216 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 215 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
| OLD | NEW |