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

Unified Diff: content/public/browser/histogram_fetcher.h

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/content_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/histogram_fetcher.h
===================================================================
--- content/public/browser/histogram_fetcher.h (revision 0)
+++ content/public/browser/histogram_fetcher.h (working copy)
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_
+#define CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_
+
+#include "base/basictypes.h"
+#include "base/callback.h"
+#include "base/time.h"
+#include "content/common/content_export.h"
+
+class MessageLoop;
+
+namespace content {
+
+// Fetch histogram data asynchronously from the various child processes, into
+// the browser process. This method is used by the metrics services in
+// preparation for a log upload. It contacts all processes, and get them to
+// upload to the browser any/all changes to histograms. When all changes have
+// been acquired, or when the wait time expires (whichever is sooner), post the
+// callback to the specified message loop. Note the callback is posted exactly
+// once.
+CONTENT_EXPORT void FetchHistogramsAsynchronously(MessageLoop* callback_thread,
+ const base::Closure& callback,
+ base::TimeDelta wait_time);
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/content_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698