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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 1950423006: Offline Pages: Add Model Load Time UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename metrics for more precision. Created 4 years, 7 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
« no previous file with comments | « no previous file | components/offline_pages/offline_page_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/offline_page_model.h
diff --git a/components/offline_pages/offline_page_model.h b/components/offline_pages/offline_page_model.h
index f7a7c1574f0563f1df5070897c882c3b5085b9f4..bd877ece6464f711e50567239fa96a368556b2bf 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -31,6 +31,7 @@ namespace base {
class SequencedTaskRunner;
class Time;
class TimeDelta;
+class TimeTicks;
}
namespace offline_pages {
@@ -268,7 +269,7 @@ class OfflinePageModel : public KeyedService, public base::SupportsUserData {
typedef ScopedVector<OfflinePageArchiver> PendingArchivers;
// Callback for ensuring archive directory is created.
- void OnEnsureArchivesDirCreatedDone();
+ void OnEnsureArchivesDirCreatedDone(const base::TimeTicks& start_time);
void GetAllPagesAfterLoadDone(
const MultipleOfflinePageItemCallback& callback);
@@ -293,7 +294,8 @@ class OfflinePageModel : public KeyedService, public base::SupportsUserData {
const HasPagesCallback& callback) const;
// Callback for loading pages from the offline page metadata store.
- void OnLoadDone(OfflinePageMetadataStore::LoadStatus load_status,
+ void OnLoadDone(const base::TimeTicks& start_time,
+ OfflinePageMetadataStore::LoadStatus load_status,
const std::vector<OfflinePageItem>& offline_pages);
// Steps for saving a page offline.
« no previous file with comments | « no previous file | components/offline_pages/offline_page_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698