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

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

Issue 319703002: Add mime type information to the download database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DownloadUIController_HistoryDownload test failure Created 6 years, 6 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual void RemoveObserver(Observer* observer) = 0; 135 virtual void RemoveObserver(Observer* observer) = 0;
136 136
137 // Called by the embedder, after creating the download manager, to let it know 137 // Called by the embedder, after creating the download manager, to let it know
138 // about downloads from previous runs of the browser. 138 // about downloads from previous runs of the browser.
139 virtual DownloadItem* CreateDownloadItem( 139 virtual DownloadItem* CreateDownloadItem(
140 uint32 id, 140 uint32 id,
141 const base::FilePath& current_path, 141 const base::FilePath& current_path,
142 const base::FilePath& target_path, 142 const base::FilePath& target_path,
143 const std::vector<GURL>& url_chain, 143 const std::vector<GURL>& url_chain,
144 const GURL& referrer_url, 144 const GURL& referrer_url,
145 const std::string& mime_type,
146 const std::string& original_mime_type,
145 const base::Time& start_time, 147 const base::Time& start_time,
146 const base::Time& end_time, 148 const base::Time& end_time,
147 const std::string& etag, 149 const std::string& etag,
148 const std::string& last_modified, 150 const std::string& last_modified,
149 int64 received_bytes, 151 int64 received_bytes,
150 int64 total_bytes, 152 int64 total_bytes,
151 DownloadItem::DownloadState state, 153 DownloadItem::DownloadState state,
152 DownloadDangerType danger_type, 154 DownloadDangerType danger_type,
153 DownloadInterruptReason interrupt_reason, 155 DownloadInterruptReason interrupt_reason,
154 bool opened) = 0; 156 bool opened) = 0;
(...skipping 17 matching lines...) Expand all
172 virtual void CheckForHistoryFilesRemoval() = 0; 174 virtual void CheckForHistoryFilesRemoval() = 0;
173 175
174 // Get the download item for |id| if present, no matter what type of download 176 // Get the download item for |id| if present, no matter what type of download
175 // it is or state it's in. 177 // it is or state it's in.
176 virtual DownloadItem* GetDownload(uint32 id) = 0; 178 virtual DownloadItem* GetDownload(uint32 id) = 0;
177 }; 179 };
178 180
179 } // namespace content 181 } // namespace content
180 182
181 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 183 #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