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

Unified Diff: chrome/browser/performance_monitor/performance_monitor.h

Issue 10829078: CPM Page Load timing (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_event_refactor
Patch Set: Created 8 years, 4 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/performance_monitor/performance_monitor.h
diff --git a/chrome/browser/performance_monitor/performance_monitor.h b/chrome/browser/performance_monitor/performance_monitor.h
index e7d7b29f98ce3ea64dbcdae1c1b2c26eac7926c6..82a139d7baa5cfbe04d9f1743bb79712fc7312da 100644
--- a/chrome/browser/performance_monitor/performance_monitor.h
+++ b/chrome/browser/performance_monitor/performance_monitor.h
@@ -94,6 +94,10 @@ class PerformanceMonitor : public content::NotificationObserver {
void AddEventOnBackgroundThread(scoped_ptr<Event> event);
+ // Since Database::AddMetric() is overloaded, base::Bind() does not work and
+ // we need a helper function.
+ void AddMetricOnBackgroundThread(MetricType type, const std::string& value);
+
// Gets the corresponding value of |key| from the database, and then runs
// |callback| on the UI thread with that value as a parameter.
void GetStateValueOnBackgroundThread(

Powered by Google App Engine
This is Rietveld 408576698