Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2008)

Side by Side Diff: content/browser/download/download_item.h

Issue 8371009: Make passing of DownloadRequestHandle separate from DownloadCreateInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/download/download_file_unittest.cc ('k') | content/browser/download/download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698