Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 // Each download is represented by a DownloadItem, and all DownloadItems | 5 // Each download is represented by a DownloadItem, and all DownloadItems |
| 6 // are owned by the DownloadManager which maintains a global list of all | 6 // are owned by the DownloadManager which maintains a global list of all |
| 7 // downloads. DownloadItems are created when a user initiates a download, | 7 // downloads. DownloadItems are created when a user initiates a download, |
| 8 // and exist for the duration of the browser life time. | 8 // and exist for the duration of the browser life time. |
| 9 // | 9 // |
| 10 // Download observers: | 10 // Download observers: |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 315 | 315 |
| 316 // Mark the download as having been opened (without actually opening it). | 316 // Mark the download as having been opened (without actually opening it). |
| 317 virtual void SetOpened(bool opened) = 0; | 317 virtual void SetOpened(bool opened) = 0; |
| 318 | 318 |
| 319 // Set a display name for the download that will be independent of the target | 319 // Set a display name for the download that will be independent of the target |
| 320 // filename. If |name| is not empty, then GetFileNameToReportUser() will | 320 // filename. If |name| is not empty, then GetFileNameToReportUser() will |
| 321 // return |name|. Has no effect on the final target filename. | 321 // return |name|. Has no effect on the final target filename. |
| 322 virtual void SetDisplayName(const base::FilePath& name) = 0; | 322 virtual void SetDisplayName(const base::FilePath& name) = 0; |
| 323 | 323 |
| 324 // Debug/testing ------------------------------------------------------------- | 324 // Debug/testing ------------------------------------------------------------- |
| 325 virtual std::string DebugString(bool verbose) const = 0; | 325 virtual std::string DebugString(bool verbose) const = 0; |
|
Jói
2013/10/15 19:00:44
Are these two methods only used by tests? Could th
asanka
2013/10/15 21:39:08
DebugString() is supposed to be used for logging a
felt
2013/10/18 01:50:53
Removed.
| |
| 326 virtual void SetDangerType(DownloadDangerType danger_type) = 0; | |
| 326 }; | 327 }; |
| 327 | 328 |
| 328 } // namespace content | 329 } // namespace content |
| 329 | 330 |
| 330 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ | 331 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ |
| OLD | NEW |