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

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

Issue 1979783002: [Merge M51][Downloads] Use the initiating StoragePartition for resumption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Called by the embedder, after creating the download manager, to let it know 139 // Called by the embedder, after creating the download manager, to let it know
140 // about downloads from previous runs of the browser. 140 // about downloads from previous runs of the browser.
141 virtual DownloadItem* CreateDownloadItem( 141 virtual DownloadItem* CreateDownloadItem(
142 const std::string& guid, 142 const std::string& guid,
143 uint32_t id, 143 uint32_t id,
144 const base::FilePath& current_path, 144 const base::FilePath& current_path,
145 const base::FilePath& target_path, 145 const base::FilePath& target_path,
146 const std::vector<GURL>& url_chain, 146 const std::vector<GURL>& url_chain,
147 const GURL& referrer_url, 147 const GURL& referrer_url,
148 const GURL& site_url,
148 const GURL& tab_url, 149 const GURL& tab_url,
149 const GURL& tab_referrer_url, 150 const GURL& tab_referrer_url,
150 const std::string& mime_type, 151 const std::string& mime_type,
151 const std::string& original_mime_type, 152 const std::string& original_mime_type,
152 const base::Time& start_time, 153 const base::Time& start_time,
153 const base::Time& end_time, 154 const base::Time& end_time,
154 const std::string& etag, 155 const std::string& etag,
155 const std::string& last_modified, 156 const std::string& last_modified,
156 int64_t received_bytes, 157 int64_t received_bytes,
157 int64_t total_bytes, 158 int64_t total_bytes,
(...skipping 28 matching lines...) Expand all
186 // if you need to keep track of a specific download. (http://crbug.com/593020) 187 // if you need to keep track of a specific download. (http://crbug.com/593020)
187 virtual DownloadItem* GetDownload(uint32_t id) = 0; 188 virtual DownloadItem* GetDownload(uint32_t id) = 0;
188 189
189 // Get the download item for |guid|. 190 // Get the download item for |guid|.
190 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; 191 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0;
191 }; 192 };
192 193
193 } // namespace content 194 } // namespace content
194 195
195 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 196 #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