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 // 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual ~Observer() {} | 112 virtual ~Observer() {} |
113 }; | 113 }; |
114 | 114 |
115 // Constructing from persistent store: | 115 // Constructing from persistent store: |
116 DownloadItem(DownloadManager* download_manager, | 116 DownloadItem(DownloadManager* download_manager, |
117 const DownloadPersistentStoreInfo& info); | 117 const DownloadPersistentStoreInfo& info); |
118 | 118 |
119 // Constructing for a regular download: | 119 // Constructing for a regular download: |
120 DownloadItem(DownloadManager* download_manager, | 120 DownloadItem(DownloadManager* download_manager, |
121 const DownloadCreateInfo& info, | 121 const DownloadCreateInfo& info, |
| 122 const DownloadRequestHandle& request_handle, |
122 bool is_otr); | 123 bool is_otr); |
123 | 124 |
124 // Constructing for the "Save Page As..." feature: | 125 // Constructing for the "Save Page As..." feature: |
125 DownloadItem(DownloadManager* download_manager, | 126 DownloadItem(DownloadManager* download_manager, |
126 const FilePath& path, | 127 const FilePath& path, |
127 const GURL& url, | 128 const GURL& url, |
128 bool is_otr, | 129 bool is_otr, |
129 DownloadId download_id); | 130 DownloadId download_id); |
130 | 131 |
131 virtual ~DownloadItem(); | 132 virtual ~DownloadItem(); |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 // only. | 484 // only. |
484 bool open_enabled_; | 485 bool open_enabled_; |
485 | 486 |
486 // Did the delegate delay calling Complete on this download? | 487 // Did the delegate delay calling Complete on this download? |
487 bool delegate_delayed_complete_; | 488 bool delegate_delayed_complete_; |
488 | 489 |
489 DISALLOW_COPY_AND_ASSIGN(DownloadItem); | 490 DISALLOW_COPY_AND_ASSIGN(DownloadItem); |
490 }; | 491 }; |
491 | 492 |
492 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_H_ | 493 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_H_ |
OLD | NEW |