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

Side by Side Diff: content/public/browser/download_manager.h

Issue 1924473003: [Downloads] Use the initiating StoragePartition for resumption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in comment Created 4 years, 7 months 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
OLDNEW
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 // The DownloadManager object manages the process of downloading, including 5 // The DownloadManager object manages the process of downloading, including
6 // updates to the history system and providing the information for displaying 6 // updates to the history system and providing the information for displaying
7 // the downloads view in the Destinations tab. There is one DownloadManager per 7 // the downloads view in the Destinations tab. There is one DownloadManager per
8 // active browser context in Chrome. 8 // active browser context in Chrome.
9 // 9 //
10 // Download observers: 10 // Download observers:
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Called by the embedder, after creating the download manager, to let it know 140 // Called by the embedder, after creating the download manager, to let it know
141 // about downloads from previous runs of the browser. 141 // about downloads from previous runs of the browser.
142 virtual DownloadItem* CreateDownloadItem( 142 virtual DownloadItem* CreateDownloadItem(
143 const std::string& guid, 143 const std::string& guid,
144 uint32_t id, 144 uint32_t id,
145 const base::FilePath& current_path, 145 const base::FilePath& current_path,
146 const base::FilePath& target_path, 146 const base::FilePath& target_path,
147 const std::vector<GURL>& url_chain, 147 const std::vector<GURL>& url_chain,
148 const GURL& referrer_url, 148 const GURL& referrer_url,
149 const GURL& site_url,
149 const GURL& tab_url, 150 const GURL& tab_url,
150 const GURL& tab_referrer_url, 151 const GURL& tab_referrer_url,
151 const std::string& mime_type, 152 const std::string& mime_type,
152 const std::string& original_mime_type, 153 const std::string& original_mime_type,
153 const base::Time& start_time, 154 const base::Time& start_time,
154 const base::Time& end_time, 155 const base::Time& end_time,
155 const std::string& etag, 156 const std::string& etag,
156 const std::string& last_modified, 157 const std::string& last_modified,
157 int64_t received_bytes, 158 int64_t received_bytes,
158 int64_t total_bytes, 159 int64_t total_bytes,
(...skipping 28 matching lines...) Expand all
187 // if you need to keep track of a specific download. (http://crbug.com/593020) 188 // if you need to keep track of a specific download. (http://crbug.com/593020)
188 virtual DownloadItem* GetDownload(uint32_t id) = 0; 189 virtual DownloadItem* GetDownload(uint32_t id) = 0;
189 190
190 // Get the download item for |guid|. 191 // Get the download item for |guid|.
191 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; 192 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0;
192 }; 193 };
193 194
194 } // namespace content 195 } // namespace content
195 196
196 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 197 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/browser/download_url_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698