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

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

Issue 11941015: Move OpenItem/ShowItemInFolder from ContentBrowserClient to DownloadManagerDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 7 years, 11 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 | Annotate | Revision Log
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Checks whether downloaded files still exist. Updates state of downloads 160 // Checks whether downloaded files still exist. Updates state of downloads
161 // that refer to removed files. The check runs in the background and may 161 // that refer to removed files. The check runs in the background and may
162 // finish asynchronously after this method returns. 162 // finish asynchronously after this method returns.
163 virtual void CheckForHistoryFilesRemoval() = 0; 163 virtual void CheckForHistoryFilesRemoval() = 0;
164 164
165 // Get the download item for |id| if present, no matter what type of download 165 // Get the download item for |id| if present, no matter what type of download
166 // it is or state it's in. 166 // it is or state it's in.
167 virtual DownloadItem* GetDownload(int id) = 0; 167 virtual DownloadItem* GetDownload(int id) = 0;
168 168
169 // Prohibits OpenDownload() from actually opening downloads for testing.
170 virtual void MockDownloadOpenForTesting() = 0;
171
169 protected: 172 protected:
170 virtual ~DownloadManager() {} 173 virtual ~DownloadManager() {}
171 174
172 private: 175 private:
173 friend class base::RefCountedThreadSafe<DownloadManager>; 176 friend class base::RefCountedThreadSafe<DownloadManager>;
174 }; 177 };
175 178
176 } // namespace content 179 } // namespace content
177 180
178 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 181 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698