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

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: merge 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
« no previous file with comments | « chrome/browser/history/download_database.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 Handle QueryDownloads(CancelableRequestConsumerBase* consumer, 439 Handle QueryDownloads(CancelableRequestConsumerBase* consumer,
440 const DownloadQueryCallback& callback); 440 const DownloadQueryCallback& callback);
441 441
442 // Begins a request to clean up entries that has been corrupted (because of 442 // Begins a request to clean up entries that has been corrupted (because of
443 // the crash, for example). 443 // the crash, for example).
444 void CleanUpInProgressEntries(); 444 void CleanUpInProgressEntries();
445 445
446 // Called to update the history service about the current state of a download. 446 // Called to update the history service about the current state of a download.
447 // This is a 'fire and forget' query, so just pass the relevant state info to 447 // This is a 'fire and forget' query, so just pass the relevant state info to
448 // the database with no need for a callback. 448 // the database with no need for a callback.
449 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle); 449 void UpdateDownload(const DownloadPersistentStoreInfo& data);
450 450
451 // Called to update the history service about the path of a download. 451 // Called to update the history service about the path of a download.
452 // This is a 'fire and forget' query. 452 // This is a 'fire and forget' query.
453 void UpdateDownloadPath(const FilePath& path, int64 db_handle); 453 void UpdateDownloadPath(const FilePath& path, int64 db_handle);
454 454
455 // Permanently remove a download from the history system. This is a 'fire and 455 // Permanently remove a download from the history system. This is a 'fire and
456 // forget' operation. 456 // forget' operation.
457 void RemoveDownload(int64 db_handle); 457 void RemoveDownload(int64 db_handle);
458 458
459 // Permanently removes all completed download from the history system within 459 // Permanently removes all completed download from the history system within
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 BookmarkService* bookmark_service_; 870 BookmarkService* bookmark_service_;
871 bool no_db_; 871 bool no_db_;
872 872
873 // True if needs top site migration. 873 // True if needs top site migration.
874 bool needs_top_sites_migration_; 874 bool needs_top_sites_migration_;
875 875
876 DISALLOW_COPY_AND_ASSIGN(HistoryService); 876 DISALLOW_COPY_AND_ASSIGN(HistoryService);
877 }; 877 };
878 878
879 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 879 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/download_database.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698