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

Unified Diff: content/browser/histogram_synchronizer.h

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/browser/device_orientation/provider_impl.h ('k') | content/common/child_histogram_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/histogram_synchronizer.h
diff --git a/content/browser/histogram_synchronizer.h b/content/browser/histogram_synchronizer.h
index 0968abdf7892ba3f912caa609900c63854ff3cf7..0b279a091ccc354d5f1b5d1115c32dc4b8adc841 100644
--- a/content/browser/histogram_synchronizer.h
+++ b/content/browser/histogram_synchronizer.h
@@ -15,7 +15,9 @@
#include "base/time.h"
#include "content/browser/histogram_subscriber.h"
+namespace base {
class MessageLoop;
+}
namespace content {
@@ -68,7 +70,7 @@ class HistogramSynchronizer : public HistogramSubscriber {
// 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.
- static void FetchHistogramsAsynchronously(MessageLoop* callback_thread,
+ static void FetchHistogramsAsynchronously(base::MessageLoop* callback_thread,
const base::Closure& callback,
base::TimeDelta wait_time);
@@ -109,13 +111,14 @@ class HistogramSynchronizer : public HistogramSubscriber {
// callaback_thread_. This side effect should not generally happen, but is in
// place to assure correctness (that any tasks that were set, are eventually
// called, and never merely discarded).
- void SetCallbackTaskAndThread(MessageLoop* callback_thread,
+ void SetCallbackTaskAndThread(base::MessageLoop* callback_thread,
const base::Closure& callback);
void ForceHistogramSynchronizationDoneCallback(int sequence_number);
// Internal helper function, to post task, and record callback stats.
- void InternalPostTask(MessageLoop* thread, const base::Closure& callback);
+ void InternalPostTask(base::MessageLoop* thread,
+ const base::Closure& callback);
// Gets a new sequence number to be sent to processes from browser process.
int GetNextAvailableSequenceNumber(ProcessHistogramRequester requester);
@@ -127,7 +130,7 @@ class HistogramSynchronizer : public HistogramSubscriber {
// the task and thread we use to post a completion notification in
// callback_ and callback_thread_.
base::Closure callback_;
- MessageLoop* callback_thread_;
+ base::MessageLoop* callback_thread_;
// We don't track the actual processes that are contacted for an update, only
// the count of the number of processes, and we can sometimes time-out and
« no previous file with comments | « content/browser/device_orientation/provider_impl.h ('k') | content/common/child_histogram_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698