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

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

Issue 10702117: Chrome Performance Monitor: Metric API Functions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Docs and other review fixes. Created 8 years, 5 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_util.h
diff --git a/chrome/browser/performance_monitor/performance_monitor_util.h b/chrome/browser/performance_monitor/performance_monitor_util.h
index 11779488c3c5f19b822619ff9f3a841cfa434878..6587201eac89c1d1134cd41ce7d4de543591cefd 100644
--- a/chrome/browser/performance_monitor/performance_monitor_util.h
+++ b/chrome/browser/performance_monitor/performance_monitor_util.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_UTIL_H_
#define CHROME_BROWSER_PERFORMANCE_MONITOR_UTIL_H_
+#include "base/threading/sequenced_worker_pool.h"
#include "base/time.h"
#include "chrome/browser/performance_monitor/event.h"
#include "chrome/browser/performance_monitor/metric_info.h"
@@ -24,6 +25,12 @@ std::vector<MetricInfo> AggregateMetric(
const base::Time& start,
const base::TimeDelta& resolution);
+// Posts |request| to the performance monitor database's sequenced thread. On
+// completion |reply| is posted to the thread that called
+// PostTaskToDatabaseThreadAndReply.
+bool PostTaskToDatabaseThreadAndReply(const base::Closure& request,
+ const base::Closure& reply);
+
// These are a collection of methods designed to create an event to store the
// pertinent information, given all the fields. Please use these methods to
// create any PerformanceMonitor events, as this will ensure strong-typing

Powered by Google App Engine
This is Rietveld 408576698