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

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

Issue 8008021: Add new UMA stats to get a handle on Downloads UI Usage (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fixed tests Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 virtual int64 GetTotalDownloadBytes(); 256 virtual int64 GetTotalDownloadBytes();
257 257
258 // Called by the delegate after the save as dialog is closed. 258 // Called by the delegate after the save as dialog is closed.
259 void FileSelected(const FilePath& path, void* params); 259 void FileSelected(const FilePath& path, void* params);
260 void FileSelectionCanceled(void* params); 260 void FileSelectionCanceled(void* params);
261 261
262 // Called by the delegate if it delayed the download in 262 // Called by the delegate if it delayed the download in
263 // DownloadManagerDelegate::ShouldStartDownload and now is ready. 263 // DownloadManagerDelegate::ShouldStartDownload and now is ready.
264 void RestartDownload(int32 download_id); 264 void RestartDownload(int32 download_id);
265 265
266 // Mark the download opened in the persistent store.
267 void MarkDownloadOpened(DownloadItem* download);
268
266 // Checks whether downloaded files still exist. Updates state of downloads 269 // Checks whether downloaded files still exist. Updates state of downloads
267 // that refer to removed files. The check runs in the background and may 270 // that refer to removed files. The check runs in the background and may
268 // finish asynchronously after this method returns. 271 // finish asynchronously after this method returns.
269 void CheckForHistoryFilesRemoval(); 272 void CheckForHistoryFilesRemoval();
270 273
271 // Checks whether a downloaded file still exists and updates the file's state 274 // Checks whether a downloaded file still exists and updates the file's state
272 // if the file is already removed. The check runs in the background and may 275 // if the file is already removed. The check runs in the background and may
273 // finish asynchronously after this method returns. 276 // finish asynchronously after this method returns.
274 void CheckForFileRemoval(DownloadItem* download_item); 277 void CheckForFileRemoval(DownloadItem* download_item);
275 278
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 DownloadManagerDelegate* delegate_; 430 DownloadManagerDelegate* delegate_;
428 431
429 // TODO(rdsmith): Remove when http://crbug.com/84508 is fixed. 432 // TODO(rdsmith): Remove when http://crbug.com/84508 is fixed.
430 // For debugging only. 433 // For debugging only.
431 int64 largest_db_handle_in_history_; 434 int64 largest_db_handle_in_history_;
432 435
433 DISALLOW_COPY_AND_ASSIGN(DownloadManager); 436 DISALLOW_COPY_AND_ASSIGN(DownloadManager);
434 }; 437 };
435 438
436 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ 439 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698