| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 18 | 18 |
| 19 #if defined(TOOLKIT_VIEWS) | 19 #if defined(TOOLKIT_VIEWS) |
| 20 #include "views/view.h" | 20 #include "views/view.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 class BaseDownloadItemModel; | |
| 24 class CrxInstaller; | |
| 25 class DownloadItem; | 23 class DownloadItem; |
| 26 class GURL; | |
| 27 class Profile; | |
| 28 class ResourceDispatcherHost; | |
| 29 class SkBitmap; | |
| 30 | |
| 31 struct DownloadCreateInfo; | |
| 32 struct DownloadSaveInfo; | |
| 33 | 24 |
| 34 namespace base { | 25 namespace base { |
| 35 class DictionaryValue; | 26 class DictionaryValue; |
| 36 class TimeTicks; | |
| 37 } | |
| 38 | |
| 39 namespace content { | |
| 40 class ResourceContext; | |
| 41 } | 27 } |
| 42 | 28 |
| 43 namespace gfx { | 29 namespace gfx { |
| 44 class Canvas; | 30 class Canvas; |
| 45 class Image; | 31 class Image; |
| 46 } | 32 } |
| 47 | 33 |
| 48 namespace download_util { | 34 namespace download_util { |
| 49 | 35 |
| 50 // Download temporary file creation -------------------------------------------- | 36 // Download temporary file creation -------------------------------------------- |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // If |path| does not exist, 0 is returned. If it fails to find such | 154 // If |path| does not exist, 0 is returned. If it fails to find such |
| 169 // a number, -1 is returned. | 155 // a number, -1 is returned. |
| 170 int GetUniquePathNumberWithCrDownload(const FilePath& path); | 156 int GetUniquePathNumberWithCrDownload(const FilePath& path); |
| 171 | 157 |
| 172 // Returns a .crdownload intermediate path for the |suggested_path|. | 158 // Returns a .crdownload intermediate path for the |suggested_path|. |
| 173 FilePath GetCrDownloadPath(const FilePath& suggested_path); | 159 FilePath GetCrDownloadPath(const FilePath& suggested_path); |
| 174 | 160 |
| 175 } // namespace download_util | 161 } // namespace download_util |
| 176 | 162 |
| 177 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 163 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
| OLD | NEW |