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

Unified 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: uma Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history.h
diff --git a/chrome/browser/history/history.h b/chrome/browser/history/history.h
index 4c79d5dbbd6e75352b7a7fa275057e38140e5123..8874e103244edcae13858968b98857c660d93bcd 100644
--- a/chrome/browser/history/history.h
+++ b/chrome/browser/history/history.h
@@ -449,7 +449,10 @@ class HistoryService : public CancelableRequestProvider,
// Called to update the history service about the current state of a download.
// This is a 'fire and forget' query, so just pass the relevant state info to
// the database with no need for a callback.
- void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle);
+ void UpdateDownload(int64 received_bytes,
+ int32 state,
+ const base::Time& end_time,
+ int64 db_handle);
// Called to update the history service about the path of a download.
// This is a 'fire and forget' query.
@@ -466,6 +469,9 @@ class HistoryService : public CancelableRequestProvider,
// both directions.
void RemoveDownloadsBetween(base::Time remove_begin, base::Time remove_end);
+ // Sets the download record |opened| flag.
+ void MarkDownloadOpened(int64 db_handle);
+
// Visit Segments ------------------------------------------------------------
typedef Callback2<Handle, std::vector<PageUsageData*>*>::Type

Powered by Google App Engine
This is Rietveld 408576698