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

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

Issue 1875033005: [Downloads/History] Add tab-url and tab-referrer-url to DownloadRow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guid-fix
Patch Set: Update expectations for DownloadUIController test. Created 4 years, 8 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& tab_url,
150 const GURL& tab_referrer_url,
149 const std::string& mime_type, 151 const std::string& mime_type,
150 const std::string& original_mime_type, 152 const std::string& original_mime_type,
151 const base::Time& start_time, 153 const base::Time& start_time,
152 const base::Time& end_time, 154 const base::Time& end_time,
153 const std::string& etag, 155 const std::string& etag,
154 const std::string& last_modified, 156 const std::string& last_modified,
155 int64_t received_bytes, 157 int64_t received_bytes,
156 int64_t total_bytes, 158 int64_t total_bytes,
157 const std::string& hash, 159 const std::string& hash,
158 DownloadItem::DownloadState state, 160 DownloadItem::DownloadState state,
(...skipping 26 matching lines...) Expand all
185 // 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)
186 virtual DownloadItem* GetDownload(uint32_t id) = 0; 188 virtual DownloadItem* GetDownload(uint32_t id) = 0;
187 189
188 // Get the download item for |guid|. 190 // Get the download item for |guid|.
189 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; 191 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0;
190 }; 192 };
191 193
192 } // namespace content 194 } // namespace content
193 195
194 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 196 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698