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

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

Issue 1967433002: [Merge-M51][Downloads/History] Add tab-url and tab-referrer-url to DownloadRow (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& tab_url,
149 const GURL& tab_referrer_url,
148 const std::string& mime_type, 150 const std::string& mime_type,
149 const std::string& original_mime_type, 151 const std::string& original_mime_type,
150 const base::Time& start_time, 152 const base::Time& start_time,
151 const base::Time& end_time, 153 const base::Time& end_time,
152 const std::string& etag, 154 const std::string& etag,
153 const std::string& last_modified, 155 const std::string& last_modified,
154 int64_t received_bytes, 156 int64_t received_bytes,
155 int64_t total_bytes, 157 int64_t total_bytes,
156 const std::string& hash, 158 const std::string& hash,
157 DownloadItem::DownloadState state, 159 DownloadItem::DownloadState state,
(...skipping 26 matching lines...) Expand all
184 // if you need to keep track of a specific download. (http://crbug.com/593020) 186 // if you need to keep track of a specific download. (http://crbug.com/593020)
185 virtual DownloadItem* GetDownload(uint32_t id) = 0; 187 virtual DownloadItem* GetDownload(uint32_t id) = 0;
186 188
187 // Get the download item for |guid|. 189 // Get the download item for |guid|.
188 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; 190 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0;
189 }; 191 };
190 192
191 } // namespace content 193 } // namespace content
192 194
193 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 195 #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