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

Side by Side Diff: chrome/browser/history/history.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 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 Handle QueryDownloads(CancelableRequestConsumerBase* consumer, 442 Handle QueryDownloads(CancelableRequestConsumerBase* consumer,
443 DownloadQueryCallback* callback); 443 DownloadQueryCallback* callback);
444 444
445 // Begins a request to clean up entries that has been corrupted (because of 445 // Begins a request to clean up entries that has been corrupted (because of
446 // the crash, for example). 446 // the crash, for example).
447 void CleanUpInProgressEntries(); 447 void CleanUpInProgressEntries();
448 448
449 // Called to update the history service about the current state of a download. 449 // Called to update the history service about the current state of a download.
450 // This is a 'fire and forget' query, so just pass the relevant state info to 450 // This is a 'fire and forget' query, so just pass the relevant state info to
451 // the database with no need for a callback. 451 // the database with no need for a callback.
452 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle); 452 void UpdateDownload(history::DownloadItemData data);
453 453
454 // Called to update the history service about the path of a download. 454 // Called to update the history service about the path of a download.
455 // This is a 'fire and forget' query. 455 // This is a 'fire and forget' query.
456 void UpdateDownloadPath(const FilePath& path, int64 db_handle); 456 void UpdateDownloadPath(const FilePath& path, int64 db_handle);
457 457
458 // Permanently remove a download from the history system. This is a 'fire and 458 // Permanently remove a download from the history system. This is a 'fire and
459 // forget' operation. 459 // forget' operation.
460 void RemoveDownload(int64 db_handle); 460 void RemoveDownload(int64 db_handle);
461 461
462 // Permanently removes all completed download from the history system within 462 // Permanently removes all completed download from the history system within
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 BookmarkService* bookmark_service_; 879 BookmarkService* bookmark_service_;
880 bool no_db_; 880 bool no_db_;
881 881
882 // True if needs top site migration. 882 // True if needs top site migration.
883 bool needs_top_sites_migration_; 883 bool needs_top_sites_migration_;
884 884
885 DISALLOW_COPY_AND_ASSIGN(HistoryService); 885 DISALLOW_COPY_AND_ASSIGN(HistoryService);
886 }; 886 };
887 887
888 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 888 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698